/** * @vcr comments/test-delete-comment-vcr.yml */ public function testDeleteComment() { $posts = $this->client->getPosts(array('number' => 1)); $this->assertNotEmpty($posts); $commentId = $this->client->newComment($posts[0]['post_id'], array('content' => 'A comment to be edit')); $this->assertGreaterThan(0, (int) $commentId); $result = $this->client->deleteComment($commentId); $this->assertTrue($result); $comment = $this->client->getComment($commentId); $this->assertSame('trash', $comment['status']); }