You are here

public function EntityFormTest::providerTestFormIds in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 68
Contains \Drupal\Tests\Core\Entity\EntityFormTest.

Class

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

Namespace

Drupal\Tests\Core\Entity

Code

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