X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Ftests%2FimageTest.php;fp=vendor%2Fdrush%2Fdrush%2Ftests%2FimageTest.php;h=0000000000000000000000000000000000000000;hp=9b69238aaeca7217cd6b4a16dc08852316e3de62;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/drush/drush/tests/imageTest.php b/vendor/drush/drush/tests/imageTest.php deleted file mode 100644 index 9b69238aa..000000000 --- a/vendor/drush/drush/tests/imageTest.php +++ /dev/null @@ -1,47 +0,0 @@ -markTestSkipped("Image styles not available in Drupal 6 core."); - } - - $sites = $this->setUpDrupal(1, TRUE, null, 'standard'); - $options = array( - 'yes' => NULL, - 'root' => $this->webroot(), - 'uri' => key($sites), - ); - $logo = UNISH_DRUPAL_MAJOR_VERSION >= 8 ? 'core/themes/bartik/screenshot.png' : 'themes/bartik/screenshot.png'; - $styles_dir = $options['root'] . '/sites/' . key($sites) . '/files/styles/'; - $thumbnail = $styles_dir . 'thumbnail/public/' . $logo; - $medium = $styles_dir . 'medium/public/' . $logo; - - // Test that "drush image-derive" works. - $style_name = 'thumbnail'; - $this->drush('image-derive', array($style_name, $logo), $options); - $this->assertFileExists($thumbnail); - - // Test that "drush image-flush thumbnail" deletes derivatives created by the thumbnail image style. - $this->drush('image-flush', array($style_name), $options); - $this->assertFileNotExists($thumbnail); - - // Check that "drush image-flush --all" deletes all image styles by creating two different ones and testing its - // existance afterwards. - $this->drush('image-derive', array('thumbnail', $logo), $options); - $this->assertFileExists($thumbnail); - $this->drush('image-derive', array('medium', $logo), $options); - $this->assertFileExists($medium); - $this->drush('image-flush', array(), array('all' => TRUE) + $options); - $this->assertFileNotExists($thumbnail); - $this->assertFileNotExists($medium); - } -}