public function DisplayVariantTest::providerTestGetConfiguration in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::providerTestGetConfiguration()
 
Provides test data for testGetConfiguration().
File
- core/
tests/ Drupal/ Tests/ Core/ Display/ DisplayVariantTest.php, line 93  - Contains \Drupal\Tests\Core\Display\DisplayVariantTest.
 
Class
- DisplayVariantTest
 - @coversDefaultClass \Drupal\Core\Display\VariantBase @group Display
 
Namespace
Drupal\Tests\Core\DisplayCode
public function providerTestGetConfiguration() {
  $data = array();
  $data[] = array(
    array(),
    array(
      'id' => 'test',
      'label' => '',
      'uuid' => '',
      'weight' => 0,
    ),
  );
  $data[] = array(
    array(
      'label' => 'Test',
    ),
    array(
      'id' => 'test',
      'label' => 'Test',
      'uuid' => '',
      'weight' => 0,
    ),
  );
  $data[] = array(
    array(
      'id' => 'foo',
    ),
    array(
      'id' => 'test',
      'label' => '',
      'uuid' => '',
      'weight' => 0,
    ),
  );
  return $data;
}