function ManageFieldsMultipleTypesTest::entityTypesProvider

Same name and namespace in other branches
  1. 10 core/modules/field_ui/tests/src/Functional/ManageFieldsMultipleTypesTest.php \Drupal\Tests\field_ui\Functional\ManageFieldsMultipleTypesTest::entityTypesProvider()

Data provider for testing Field UI with multiple entity types.

Return value

array Test cases.

File

core/modules/field_ui/tests/src/Functional/ManageFieldsMultipleTypesTest.php, line 143

Class

ManageFieldsMultipleTypesTest
Tests the Field UI "Manage fields" screen.

Namespace

Drupal\Tests\field_ui\Functional

Code

public static function entityTypesProvider() {
    return [
        'node' => [
            'entity_type' => 'node',
            'bundle1' => [
                'id' => 'article',
                'path' => 'admin/structure/types/manage/article',
            ],
            'bundle2' => [
                'id' => 'page',
                'path' => 'admin/structure/types/manage/page',
            ],
        ],
        'taxonomy' => [
            'entity_type' => 'taxonomy_term',
            'bundle1' => [
                'id' => 'tags',
                'path' => 'admin/structure/taxonomy/manage/tags/overview',
            ],
            'bundle2' => [
                'id' => 'kittens',
                'path' => 'admin/structure/taxonomy/manage/kittens/overview',
            ],
        ],
    ];
}

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