public getEntities ( ) : string[] | ||
return | string[] | a list of all available entity names |
public function getEntities()
{
return array_keys($this->datas);
}
public function testGetEntities() { $crudServiceProvider = new ServiceProvider(); $app = new Application(); $crudServiceProvider->init($this->dataFactory, $this->crudFile, $this->fileProcessorMock, true, $app); $expected = ['library', 'book']; $read = $crudServiceProvider->getEntities(); $this->assertSame($read, $expected); }