public function ConfigSnapshotConfigEntityUnitTest::testCalculateDependencies in Config Snapshot 8
@covers ::calculateDependencies
File
- tests/
src/ Unit/ ConfigSnapshotConfigEntityUnitTest.php, line 96
Class
- ConfigSnapshotConfigEntityUnitTest
- @coversDefaultClass \Drupal\config_snapshot\Entity\ConfigSnapshot @group config_snapshot
Namespace
Drupal\Tests\config_snapshot\UnitCode
public function testCalculateDependencies() {
$this->entityTypeManager
->expects($this
->any())
->method('getDefinition')
->will($this
->returnValue($this->entityType));
$dependencies = $this->entity
->calculateDependencies()
->getDependencies();
$this
->assertArrayNotHasKey('config', $dependencies);
$this
->assertContains($this->extensionName, $dependencies['module']);
}