You are here

public function RuleExpressionTest::testSetActionsGetActions in Rules 8.3

Tests the condition container setter and getter.

@covers ::setActions @covers ::getActions

File

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

Class

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

Namespace

Drupal\Tests\rules\Unit

Code

public function testSetActionsGetActions() {
  $action_set = new ActionSetExpression([], '', [], $this->expressionManager
    ->reveal(), $this->rulesDebugLogger
    ->reveal());
  $this->rule
    ->setActions($action_set);
  $this
    ->assertSame($action_set, $this->rule
    ->getActions());
}