public function testCreateData() { $repository = new TestRepository(); $test = $repository->create(['title' => 'test 1', 'seq' => -1]); $this->count++; $this->assertArrayHasKey('title', $test); $this->assertTrue($repository->count() == $this->count); }