You are here

public function SchedulerHooksTest::dataCustomEntityTypes in Scheduler 2.x

Provides test data containing the custom entity types.

Return value

array Each array item has the values: [entity type id, bundle id].

File

tests/src/Functional/SchedulerHooksTest.php, line 83

Class

SchedulerHooksTest
Tests the API hook functions of the Scheduler module.

Namespace

Drupal\Tests\scheduler\Functional

Code

public function dataCustomEntityTypes() {
  $data = [
    '#node' => [
      'node',
      'scheduler_api_node_test',
    ],
    '#media' => [
      'media',
      'scheduler_api_media_test',
    ],
    '#commerce_product' => [
      'commerce_product',
      'scheduler_api_product_test',
    ],
  ];
  return $data;
}