public function ConditionAccessResolverTraitTest::testResolveConditions in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Condition/ConditionAccessResolverTraitTest.php \Drupal\Tests\Core\Condition\ConditionAccessResolverTraitTest::testResolveConditions()
Tests the resolveConditions() method.
@covers ::resolveConditions
@dataProvider providerTestResolveConditions
File
- core/
tests/ Drupal/ Tests/ Core/ Condition/ ConditionAccessResolverTraitTest.php, line 26 - Contains \Drupal\Tests\Core\Condition\ConditionAccessResolverTraitTest.
Class
- ConditionAccessResolverTraitTest
- @coversDefaultClass \Drupal\Core\Condition\ConditionAccessResolverTrait @group Condition
Namespace
Drupal\Tests\Core\ConditionCode
public function testResolveConditions($conditions, $logic, $expected) {
$trait_object = new TestConditionAccessResolverTrait();
$this
->assertEquals($expected, $trait_object
->resolveConditions($conditions, $logic));
}