You are here

public function ConditionAccessResolverTraitTest::testResolveConditions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\Condition

Code

public function testResolveConditions($conditions, $logic, $expected) {
  $trait_object = new TestConditionAccessResolverTrait();
  $this
    ->assertEquals($expected, $trait_object
    ->resolveConditions($conditions, $logic));
}