You are here

public function PathHasAliasTest::testConstructor in Rules 8.3

Tests that the dependencies are properly set in the constructor.

@covers ::__construct

File

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

Class

PathHasAliasTest
@coversDefaultClass \Drupal\rules\Plugin\Condition\PathHasAlias @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));
}