Only run some preview unit tets if imagemagick is available
This commit is contained in:
parent
61a60ffd47
commit
c061497eca
|
@ -287,6 +287,7 @@ class Preview extends TestCase {
|
||||||
/**
|
/**
|
||||||
* Tests if a preview of max dimensions gets created
|
* Tests if a preview of max dimensions gets created
|
||||||
*
|
*
|
||||||
|
* @requires extension imagick
|
||||||
* @dataProvider dimensionsDataProvider
|
* @dataProvider dimensionsDataProvider
|
||||||
*
|
*
|
||||||
* @param int $sampleId
|
* @param int $sampleId
|
||||||
|
@ -358,6 +359,7 @@ class Preview extends TestCase {
|
||||||
/**
|
/**
|
||||||
* Tests if the second preview will be based off the cached max preview
|
* Tests if the second preview will be based off the cached max preview
|
||||||
*
|
*
|
||||||
|
* @requires extension imagick
|
||||||
* @dataProvider dimensionsDataProvider
|
* @dataProvider dimensionsDataProvider
|
||||||
*
|
*
|
||||||
* @param int $sampleId
|
* @param int $sampleId
|
||||||
|
@ -443,6 +445,7 @@ class Preview extends TestCase {
|
||||||
* so we should be getting either the max preview or a preview the size
|
* so we should be getting either the max preview or a preview the size
|
||||||
* of the dimensions set in the config
|
* of the dimensions set in the config
|
||||||
*
|
*
|
||||||
|
* @requires extension imagick
|
||||||
* @dataProvider aspectDataProvider
|
* @dataProvider aspectDataProvider
|
||||||
*
|
*
|
||||||
* @param int $sampleId
|
* @param int $sampleId
|
||||||
|
@ -499,6 +502,7 @@ class Preview extends TestCase {
|
||||||
* 200-200 ✓
|
* 200-200 ✓
|
||||||
* 300-188-with-aspect
|
* 300-188-with-aspect
|
||||||
*
|
*
|
||||||
|
* @requires extension imagick
|
||||||
* @dataProvider aspectDataProvider
|
* @dataProvider aspectDataProvider
|
||||||
*
|
*
|
||||||
* @param int $sampleId
|
* @param int $sampleId
|
||||||
|
|
|
@ -85,6 +85,7 @@ abstract class Provider extends \Test\TestCase {
|
||||||
* Launches all the tests we have
|
* Launches all the tests we have
|
||||||
*
|
*
|
||||||
* @dataProvider dimensionsDataProvider
|
* @dataProvider dimensionsDataProvider
|
||||||
|
* @requires extension imagick
|
||||||
*
|
*
|
||||||
* @param int $widthAdjustment
|
* @param int $widthAdjustment
|
||||||
* @param int $heightAdjustment
|
* @param int $heightAdjustment
|
||||||
|
|
Loading…
Reference in New Issue