comparison core/modules/migrate/tests/src/Kernel/MigrateTestBase.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
178 protected function executeMigrations(array $ids) { 178 protected function executeMigrations(array $ids) {
179 $manager = $this->container->get('plugin.manager.migration'); 179 $manager = $this->container->get('plugin.manager.migration');
180 array_walk($ids, function ($id) use ($manager) { 180 array_walk($ids, function ($id) use ($manager) {
181 // This is possibly a base plugin ID and we want to run all derivatives. 181 // This is possibly a base plugin ID and we want to run all derivatives.
182 $instances = $manager->createInstances($id); 182 $instances = $manager->createInstances($id);
183 $this->assertNotEmpty($instances, sprintf("No migrations created for id '%s'.", $id));
183 array_walk($instances, [$this, 'executeMigration']); 184 array_walk($instances, [$this, 'executeMigration']);
184 }); 185 });
185 } 186 }
186 187
187 /** 188 /**