public function ConfigDependenciesTest::testViewsFieldDependencies in Workbench Access 8
Tests views field dependencies.
File
- tests/
src/ Kernel/ ConfigDependenciesTest.php, line 88
Class
- ConfigDependenciesTest
- Defines a class for testing config dependencies.
Namespace
Drupal\Tests\workbench_access\KernelCode
public function testViewsFieldDependencies() {
$configuration = [
'scheme' => 'editorial_section',
];
$handler = Section::create($this->container, $configuration, 'section:editorial_section', []);
$dependencies = $handler
->calculateDependencies();
$this
->assertEquals([
'config' => [
'workbench_access.access_scheme.editorial_section',
],
], $dependencies);
}