public function testCreatePost() { $latestId = self::ARTICLE_COUNT + 1; $article = $this->repository->create(['title' => 'title ' . $latestId, 'body' => 'body ' . $latestId]); $this->assertEquals(self::ARTICLE_COUNT + 1, $article->id); }