You are here

protected function ImageCachePresetTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/image/tests/src/Unit/Plugin/migrate/source/d6/ImageCachePresetTest.php \Drupal\Tests\image\Unit\Plugin\migrate\source\d6\ImageCachePresetTest::setUp()

Overrides MigrateSqlSourceTestCase::setUp

File

core/modules/image/tests/src/Unit/Plugin/migrate/source/d6/ImageCachePresetTest.php, line 52
Contains \Drupal\Tests\image\Unit\Plugin\migrate\source\d6\ImageCachePresetTest.

Class

ImageCachePresetTest
Tests the d6_imagecache_presets source plugin.

Namespace

Drupal\Tests\image\Unit\Plugin\migrate\source\d6

Code

protected function setUp() {
  $this->databaseContents['imagecache_preset'] = array(
    array(
      'presetid' => '1',
      'presetname' => 'slackjaw_boys',
    ),
  );
  $this->databaseContents['imagecache_action'] = array(
    array(
      'actionid' => '3',
      'presetid' => '1',
      'weight' => '0',
      'module' => 'imagecache',
      'action' => 'imagecache_scale_and_crop',
      'data' => 'a:2:{s:5:"width";s:4:"100%";s:6:"height";s:4:"100%";}',
    ),
  );
  parent::setUp();
}