function ResourceTypeRepositoryTest::getProvider

Data provider for testGet.

@returns array The data for the test method.

File

core/modules/jsonapi/tests/src/Kernel/ResourceType/ResourceTypeRepositoryTest.php, line 96

Class

ResourceTypeRepositoryTest
@coversDefaultClass \Drupal\jsonapi\ResourceType\ResourceTypeRepository[[api-linebreak]] @group jsonapi

Namespace

Drupal\Tests\jsonapi\Kernel\ResourceType

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.