You are here

public function ContextDefinitionTest::providerGetConstraint in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionTest.php \Drupal\Tests\Core\Plugin\Context\ContextDefinitionTest::providerGetConstraint()

Data provider for testGetConstraint

File

core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionTest.php, line 177
Contains \Drupal\Tests\Core\Plugin\Context\ContextDefinitionTest.

Class

ContextDefinitionTest
Tests the ContextDefinition class.

Namespace

Drupal\Tests\Core\Plugin\Context

Code

public function providerGetConstraint() {
  return array(
    array(
      NULL,
      array(),
      'nonexistent_constraint_name',
    ),
    array(
      'not_null',
      array(
        'constraint_name' => 'not_null',
      ),
      'constraint_name',
    ),
  );
}