public function ConfigActionsTransformTest::testAdd in Config Actions 8
@covers ::add
File
- tests/
src/ Unit/ ConfigActionsTransformTest.php, line 54
Class
- ConfigActionsTransformTest
- test the ConfigActionsTransform class
Namespace
Drupal\Tests\config_actions\UnitCode
public function testAdd() {
$source = Yaml::decode(file_get_contents(dirname(__FILE__) . "/node.type.page.yml"));
$path = [
"third_party_settings",
"workbench_moderation",
"test",
];
$value = [
"myvalue" => 123,
];
$output = ConfigActionsTransform::add($source, $path, $value);
$source['third_party_settings']['workbench_moderation']['test'] = $value;
self::assertEquals($source, $output);
}