$expected =
[ 'Unable to install the <em class="placeholder">unknown_module</em> module since it does not exist.',
'Unable to install the <em class="placeholder">Book</em> module since it requires the <em class="placeholder">Node, Text, Field, Filter, User</em> modules.',
'Unable to install the <em class="placeholder">unknown_theme</em> theme since it does not exist.',
'Configuration <em class="placeholder">config_test.dynamic.dotted.config</em> depends on the <em class="placeholder">unknown</em> configuration that will not exist after import.',
'Configuration <em class="placeholder">config_test.dynamic.dotted.existing</em> depends on the <em class="placeholder">config_test.dynamic.dotted.deleted</em> configuration that will not exist after import.',
'Configuration <em class="placeholder">config_test.dynamic.dotted.module</em> depends on the <em class="placeholder">unknown</em> module that will not be installed after import.',
'Configuration <em class="placeholder">config_test.dynamic.dotted.theme</em> depends on the <em class="placeholder">unknown</em> theme that will not be installed after import.',
'Configuration <em class="placeholder">unknown.config</em> depends on the <em class="placeholder">unknown</em> extension that will not be installed after import.',
];
foreach ($expected as $expected_message) { $this->
assertContainsEquals($expected_message,
$error_log,
$expected_message);
} } // Make a config entity have multiple unmet dependencies.
$config_entity_data =
$sync->
read('config_test.dynamic.dotted.default'
);
$config_entity_data['dependencies'
] =
['module' =>
['unknown', 'dblog'
]];
$sync->
write('config_test.dynamic.dotted.module',
$config_entity_data);
$config_entity_data['dependencies'
] =
['theme' =>
['unknown', 'stark'
]];
$sync->
write('config_test.dynamic.dotted.theme',
$config_entity_data);
$config_entity_data['dependencies'
] =
['config' =>
['unknown', 'unknown2'
]];
$sync->
write('config_test.dynamic.dotted.config',
$config_entity_data);