コード例 #1
0
ファイル: EntityTest.php プロジェクト: spira/api-core
 public function testFindByRouteParam()
 {
     $routeParams = ['varchar' => 'foo', 'hash' => 'bar'];
     $realEntity = $this->getFactory(TestEntity::class)->customize($routeParams)->create();
     $testEntity = new TestEntity();
     $foundEntity = $testEntity->findByRouteParams($routeParams);
     $this->assertEquals($realEntity->entity_id, $foundEntity->entity_id);
 }