private function unlikePost($id) { $p = $this->api->unlikePost($id); $this->assertArrayHasKey('like_count', $p); $this->assertArrayHasKey('i_like', $p); return $p['like_count']; }
protected function deletePost($id) { $p = $this->api->deletePost($id, ['context' => 'edit']); $this->assertEquals('trash', $p['status']); return ApiUtils::comToPost($p); }