You are here

public function ResourceTypeRepositoryTest::getProvider in JSON:API 8.2

Same name and namespace in other branches
  1. 8 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\ResourceType

Code

public function getProvider() {
  return [
    [
      'node',
      'article',
      'Drupal\\node\\Entity\\Node',
    ],
    [
      'node_type',
      'node_type',
      'Drupal\\node\\Entity\\NodeType',
    ],
    [
      'menu',
      'menu',
      'Drupal\\system\\Entity\\Menu',
    ],
  ];
}