update drupal
This commit is contained in:
@@ -35,15 +35,10 @@ class MigrateImageCacheTest extends MigrateDrupal6TestBase {
|
||||
->condition('type', 'module')
|
||||
->execute();
|
||||
|
||||
try {
|
||||
$this->getMigration('d6_imagecache_presets')
|
||||
->getSourcePlugin()
|
||||
->checkRequirements();
|
||||
$this->fail('Did not catch expected RequirementsException.');
|
||||
}
|
||||
catch (RequirementsException $e) {
|
||||
$this->pass('Caught expected RequirementsException: ' . $e->getMessage());
|
||||
}
|
||||
$this->expectException(RequirementsException::class);
|
||||
$this->getMigration('d6_imagecache_presets')
|
||||
->getSourcePlugin()
|
||||
->checkRequirements();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -162,7 +157,7 @@ class MigrateImageCacheTest extends MigrateDrupal6TestBase {
|
||||
|
||||
if ($effect_config['id'] == $id && $effect_config['data'] == $config) {
|
||||
// We found this effect so succeed and return.
|
||||
return $this->pass('Effect ' . $id . ' imported correctly');
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
// The loop did not find the effect so we it was not imported correctly.
|
||||
|
||||
Reference in New Issue
Block a user