You are here

public function ElementInfoManagerTest::providerTestGetInfoElementPlugin in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php \Drupal\Tests\Core\Render\ElementInfoManagerTest::providerTestGetInfoElementPlugin()

Provides tests data for testGetInfoElementPlugin().

Return value

array

File

core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php, line 117
Contains \Drupal\Tests\Core\Render\ElementInfoManagerTest.

Class

ElementInfoManagerTest
@coversDefaultClass \Drupal\Core\Render\ElementInfoManager @group Render

Namespace

Drupal\Tests\Core\Render

Code

public function providerTestGetInfoElementPlugin() {
  $data = array();
  $data[] = array(
    'Drupal\\Core\\Render\\Element\\ElementInterface',
    array(
      '#type' => 'page',
      '#theme' => 'page',
      '#defaults_loaded' => TRUE,
    ),
  );
  $data[] = array(
    'Drupal\\Core\\Render\\Element\\FormElementInterface',
    array(
      '#type' => 'page',
      '#theme' => 'page',
      '#input' => TRUE,
      '#value_callback' => array(
        'TestElementPlugin',
        'valueCallback',
      ),
      '#defaults_loaded' => TRUE,
    ),
  );
  return $data;
}