function RuleExpressionTest::testContainersOnConstruct

Tests that a rule is constructed with condition and action containers.

@covers ::__construct

File

tests/src/Unit/RuleExpressionTest.php, line 71

Class

RuleExpressionTest
@coversDefaultClass \Drupal\rules\Plugin\RulesExpression\RuleExpression @group Rules

Namespace

Drupal\Tests\rules\Unit

Code

public function testContainersOnConstruct() {
    $this->assertSame($this->conditions, $this->rule
        ->getConditions());
    $this->assertSame($this->actions, $this->rule
        ->getActions());
}