Example #1
0
 public function testDeleteCategoryWithCorrectId()
 {
     // Given
     $blogId = 'blog id';
     $username = '******';
     $password = '******';
     $id = 1;
     $this->xmlRpcClient->expects($this->once())->method('call')->with('wp.deleteCategory', array($blogId, $username, $password, $id))->will($this->returnValue(true));
     $client = new Client(null, $username, $password, $blogId, $this->xmlRpcClient);
     // When
     $result = $client->deleteCategory($id);
     // Then
     $this->assertTrue($result);
 }