function PathHasAliasTest::testConstructor
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\ConditionCode
public function testConstructor() {
$property = new \ReflectionProperty($this->condition, 'aliasManager');
$property->setAccessible(TRUE);
$this->assertSame($this->aliasManager
->reveal(), $property->getValue($this->condition));
}