示例#1
0
 public function testCreatePosts()
 {
     $p1 = $this->createPost(ApiUtils::makePost('title1', 'content1'));
     $p2 = $this->createPost(ApiUtils::makePost('title2', 'content2'));
     $this->assertNotEquals($p1->id, $p2->id, 'Two created posts should not have the same ID');
     return [$p1, $p2];
 }