Update to drupal-org-drupal 8.0.0-rc2. For more information, see https://www.drupal.org/node/2598668
This commit is contained in:
parent
f32e58e4b1
commit
8e18df8c36
3062 changed files with 15044 additions and 172506 deletions
|
@ -8,7 +8,6 @@
|
|||
namespace Drupal\image\Tests;
|
||||
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
/**
|
||||
* Tests the functions for generating paths and URLs for image styles.
|
||||
|
|
|
@ -9,13 +9,13 @@ namespace Drupal\image\Tests\Migrate\d6;
|
|||
|
||||
use Drupal\Core\Database\Database;
|
||||
use Drupal\image\Entity\ImageStyle;
|
||||
use \Drupal\image\ConfigurableImageEffectBase;
|
||||
use Drupal\migrate\Entity\Migration;
|
||||
use Drupal\migrate\Entity\MigrationInterface;
|
||||
use Drupal\migrate\MigrateException;
|
||||
use Drupal\migrate\Exception\RequirementsException;
|
||||
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
|
||||
|
||||
/**
|
||||
* Migrate ImageCache presets to Image styles
|
||||
* Tests migration of ImageCache presets to image styles.
|
||||
*
|
||||
* @group image
|
||||
*/
|
||||
|
@ -29,6 +29,29 @@ class MigrateImageCacheTest extends MigrateDrupal6TestBase {
|
|||
$this->installConfig(['image']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests that an exception is thrown when ImageCache is not installed.
|
||||
*/
|
||||
public function testMissingTable() {
|
||||
$this->sourceDatabase->update('system')
|
||||
->fields(array(
|
||||
'status' => 0,
|
||||
))
|
||||
->condition('name', 'imagecache')
|
||||
->condition('type', 'module')
|
||||
->execute();
|
||||
|
||||
try {
|
||||
Migration::load('d6_imagecache_presets')
|
||||
->getSourcePlugin()
|
||||
->checkRequirements();
|
||||
$this->fail('Did not catch expected RequirementsException.');
|
||||
}
|
||||
catch (RequirementsException $e) {
|
||||
$this->pass('Caught expected RequirementsException: ' . $e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Test basic passing migrations.
|
||||
*/
|
||||
|
|
Reference in a new issue