/** * @vcr comments/test-get-comment-count-no-privilege-vcr.yml * @expectedException HieuLe\WordpressXmlrpcClient\Exception\XmlrpcException * @expectedExceptionCode 403 * @expectedExceptionMessage You are not allowed access to details about comments. */ public function testGetCommentCountNoPrivilege() { $posts = $this->client->getPosts(array('number' => 1)); $this->assertNotEmpty($posts); $count = $this->guestClient->getCommentCount(1); }