public function ConfigEntityDependencyTest::testEmptyDependencies in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityDependencyTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityDependencyTest::testEmptyDependencies()
File
- core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ ConfigEntityDependencyTest.php, line 20 - Contains \Drupal\Tests\Core\Config\Entity\ConfigEntityDependencyTest.
Class
- ConfigEntityDependencyTest
- Tests the ConfigEntityDependency class.
Namespace
Drupal\Tests\Core\Config\EntityCode
public function testEmptyDependencies() {
$dep = new ConfigEntityDependency('config_test.dynamic.entity_id', array());
$this
->assertEquals('config_test.dynamic.entity_id', $dep
->getConfigDependencyName());
$this
->assertEquals(array(), $dep
->getDependencies('theme'));
$this
->assertEquals(array(), $dep
->getDependencies('config'));
$this
->assertEquals(array(
'config_test',
), $dep
->getDependencies('module'));
$this
->assertTrue($dep
->hasDependency('module', 'config_test'));
$this
->assertFalse($dep
->hasDependency('module', 'views'));
}