function RulesComponentTest::testGetExpression

@covers ::getExpression

File

tests/src/Unit/Integration/Engine/RulesComponentTest.php, line 44

Class

RulesComponentTest
Tests the Rules component class.

Namespace

Drupal\Tests\rules\Unit\Integration\Engine

Code

public function testGetExpression() {
    $rule = $this->rulesExpressionManager
        ->createRule();
    $this->assertSame(RulesComponent::create($rule)->getExpression(), $rule);
}