public function ResourceTypeRepositoryTest::getProvider in JSON:API 8
Same name and namespace in other branches
- 8.2 tests/src/Kernel/ResourceType/ResourceTypeRepositoryTest.php \Drupal\Tests\jsonapi\Kernel\ResourceType\ResourceTypeRepositoryTest::getProvider()
Data provider for testGet.
@returns array The data for the test method.
File
- tests/
src/ Kernel/ ResourceType/ ResourceTypeRepositoryTest.php, line 92
Class
- ResourceTypeRepositoryTest
- @coversDefaultClass \Drupal\jsonapi\ResourceType\ResourceTypeRepository @group jsonapi @group legacy
Namespace
Drupal\Tests\jsonapi\Kernel\ResourceTypeCode
public function getProvider() {
return [
[
'node',
'article',
'Drupal\\node\\Entity\\Node',
],
[
'node_type',
'node_type',
'Drupal\\node\\Entity\\NodeType',
],
[
'menu',
'menu',
'Drupal\\system\\Entity\\Menu',
],
];
}