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