You are here

public function EntityFormTest::providerTestFormIds in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Entity/EntityFormTest.php \Drupal\Tests\Core\Entity\EntityFormTest::providerTestFormIds()
  2. 9 core/tests/Drupal/Tests/Core/Entity/EntityFormTest.php \Drupal\Tests\Core\Entity\EntityFormTest::providerTestFormIds()

Provides test data for testFormId().

File

core/tests/Drupal/Tests/Core/Entity/EntityFormTest.php, line 73

Class

EntityFormTest
@coversDefaultClass \Drupal\Core\Entity\EntityForm @group Entity

Namespace

Drupal\Tests\Core\Entity

Code

public function providerTestFormIds() {
  return [
    [
      'node_article_form',
      [
        'entity_type' => 'node',
        'bundle' => 'article',
        'operation' => 'default',
      ],
    ],
    [
      'node_article_delete_form',
      [
        'entity_type' => 'node',
        'bundle' => 'article',
        'operation' => 'delete',
      ],
    ],
    [
      'user_user_form',
      [
        'entity_type' => 'user',
        'bundle' => 'user',
        'operation' => 'default',
      ],
    ],
    [
      'user_form',
      [
        'entity_type' => 'user',
        'bundle' => '',
        'operation' => 'default',
      ],
    ],
    [
      'user_delete_form',
      [
        'entity_type' => 'user',
        'bundle' => '',
        'operation' => 'delete',
      ],
    ],
  ];
}