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