Skip to content

Commit

Permalink
[stable8.1] Preview tests require imagick 2 (#24588)
Browse files Browse the repository at this point in the history
* SVG preview unit test requires Imagick

* Fix preview tests
  • Loading branch information
DeepDiver1975 committed Jul 4, 2016
1 parent 280f7c9 commit 7b92dd2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/lib/preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ public static function dimensionsDataProvider() {
* Tests if a preview of max dimensions gets created
*
* @dataProvider dimensionsDataProvider
* @requires function Imagick::__construct
*
* @param int $sampleId
* @param int $widthAdjustment
Expand Down Expand Up @@ -359,6 +360,7 @@ public function testCreateMaxAndNormalPreviewsAtFirstRequest(
* Tests if the second preview will be based off the cached max preview
*
* @dataProvider dimensionsDataProvider
* @requires function Imagick::__construct
*
* @param int $sampleId
* @param int $widthAdjustment
Expand Down Expand Up @@ -444,6 +446,7 @@ public static function aspectDataProvider() {
* of the dimensions set in the config
*
* @dataProvider aspectDataProvider
* @requires function Imagick::__construct
*
* @param int $sampleId
* @param bool $keepAspect
Expand Down Expand Up @@ -500,6 +503,7 @@ public function testDoNotCreatePreviewsLargerThanConfigMax(
* 300-188-with-aspect
*
* @dataProvider aspectDataProvider
* @requires function Imagick::__construct
*
* @param int $sampleId
* @param bool $keepAspect
Expand Down
3 changes: 3 additions & 0 deletions tests/lib/preview/svg.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

namespace Test\Preview;

/**
* @requires function Imagick::__construct
*/
class SVG extends Provider {

public function setUp() {
Expand Down

0 comments on commit 7b92dd2

Please sign in to comment.