/** * @vcr posts/test-delete-post-no-privilege-vcr.yml * @expectedException HieuLe\WordpressXmlrpcClient\Exception\XmlrpcException * @expectedExceptionCode 401 * @expectedExceptionMessage Sorry, you are not allowed to delete this post. */ public function testDeletePostNoPrivilege() { $result = $this->guestClient->deletePost(234); }