function EntityTypeManagerTest::provideMissingHandlerData

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\EntityTypeManagerTest::provideMissingHandlerData()

Provides test data for testGetHandlerMissingHandler().

Return value

array Test data.

File

core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php, line 320

Class

EntityTypeManagerTest
@coversDefaultClass \Drupal\Core\Entity\EntityTypeManager[[api-linebreak]] @group Entity

Namespace

Drupal\Tests\Core\Entity

Code

public static function provideMissingHandlerData() : array {
  return [
    'missing_handler' => [
      'test_entity_type',
      'storage',
      '',
      'The "test_entity_type" entity type did not specify a storage handler.',
    ],
    'missing_handler_class' => [
      'test_entity_type',
      'storage',
      'Non_Existing_Class',
      'The storage handler of the "test_entity_type" entity type specifies a non-existent class "Non_Existing_Class".',
    ],
  ];
}

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