function PathAliasExistsTest::testConstructor

Tests that the dependencies are properly set in the constructor.

@covers ::__construct

File

tests/src/Unit/Integration/Condition/PathAliasExistsTest.php, line 55

Class

PathAliasExistsTest
@coversDefaultClass \Drupal\rules\Plugin\Condition\PathAliasExists @group RulesCondition

Namespace

Drupal\Tests\rules\Unit\Integration\Condition

Code

public function testConstructor() {
    $property = new \ReflectionProperty($this->condition, 'aliasManager');
    $property->setAccessible(TRUE);
    $this->assertSame($this->aliasManager
        ->reveal(), $property->getValue($this->condition));
}