comparison core/tests/Drupal/KernelTests/AssertConfigTrait.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
38 throw new \Exception($config_name . ': ' . var_export($op, TRUE)); 38 throw new \Exception($config_name . ': ' . var_export($op, TRUE));
39 } 39 }
40 40
41 // Allow to skip entire config files. 41 // Allow to skip entire config files.
42 if ($skipped_config[$config_name] === TRUE) { 42 if ($skipped_config[$config_name] === TRUE) {
43 continue; 43 break;
44 } 44 }
45 45
46 // Allow to skip some specific lines of imported config files. 46 // Allow to skip some specific lines of imported config files.
47 // Ensure that the only changed lines are the ones we marked as 47 // Ensure that the only changed lines are the ones we marked as
48 // skipped. 48 // skipped.
69 } 69 }
70 break; 70 break;
71 case 'Drupal\Component\Diff\Engine\DiffOpAdd': 71 case 'Drupal\Component\Diff\Engine\DiffOpAdd':
72 // The _core property does not exist in the default config. 72 // The _core property does not exist in the default config.
73 if ($op->closing[0] === '_core:') { 73 if ($op->closing[0] === '_core:') {
74 continue; 74 break;
75 } 75 }
76 foreach ($op->closing as $closing) { 76 foreach ($op->closing as $closing) {
77 // The UUIDs don't exist in the default config. 77 // The UUIDs don't exist in the default config.
78 if (strpos($closing, 'uuid: ') === 0) { 78 if (strpos($closing, 'uuid: ') === 0) {
79 continue; 79 break;
80 } 80 }
81 throw new \Exception($config_name . ': ' . var_export($op, TRUE)); 81 throw new \Exception($config_name . ': ' . var_export($op, TRUE));
82 } 82 }
83 break; 83 break;
84 default: 84 default: