You are here

public function ConfigActionsTransformTest::testRead in Config Actions 8

@covers ::read

File

tests/src/Unit/ConfigActionsTransformTest.php, line 67

Class

ConfigActionsTransformTest
test the ConfigActionsTransform class

Namespace

Drupal\Tests\config_actions\Unit

Code

public function testRead() {
  $source = Yaml::decode(file_get_contents(dirname(__FILE__) . "/node.type.page.yml"));
  $path = [
    "dependencies",
    "module",
  ];
  $output = ConfigActionsTransform::read($source, $path);
  self::assertEquals([
    'menu_ui',
    'workbench_moderation',
  ], $output);
}