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