public function ContextDefinitionTest::providerGetConstraint in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionTest.php \Drupal\Tests\Core\Plugin\Context\ContextDefinitionTest::providerGetConstraint()
- 10 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 163
Class
- ContextDefinitionTest
- Tests the ContextDefinition class.
Namespace
Drupal\Tests\Core\Plugin\ContextCode
public function providerGetConstraint() {
return [
[
NULL,
[],
'nonexistent_constraint_name',
],
[
'not_null',
[
'constraint_name' => 'not_null',
],
'constraint_name',
],
];
}