Provide a more helpful failure message when Imagick isn't installed. Skipping the tests isn't really an option because Imagick's presence affects several other tests too.
See #34087 git-svn-id: https://develop.svn.wordpress.org/trunk@35345 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
289973f078
commit
63748f2d67
@ -5,6 +5,14 @@
|
|||||||
* @group upload
|
* @group upload
|
||||||
*/
|
*/
|
||||||
class Tests_Image_Intermediate_Size extends WP_UnitTestCase {
|
class Tests_Image_Intermediate_Size extends WP_UnitTestCase {
|
||||||
|
|
||||||
|
function setUp() {
|
||||||
|
parent::setUp();
|
||||||
|
if ( ! extension_loaded( 'imagick' ) ) {
|
||||||
|
$this->fail( 'The Imagick extension is not installed.' );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function tearDown() {
|
function tearDown() {
|
||||||
$this->remove_added_uploads();
|
$this->remove_added_uploads();
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user