]> git.mxchange.org Git - friendica.git/commitdiff
Skip Imagick Installer test until we can mock class_exists
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 2 Nov 2019 17:06:49 +0000 (13:06 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 2 Nov 2019 17:06:49 +0000 (13:06 -0400)
tests/src/Core/InstallerTest.php

index 735a52cd09f3d87db68079d27017d3980b87fc4c..3b41e4739cff218fa349b5f3e65f3dbd7caeba04 100644 (file)
@@ -351,12 +351,9 @@ class InstallerTest extends MockedTest
         */
        public function testImagick()
        {
-               $this->l10nMock->shouldReceive('t')->andReturnUsing(function ($args) { return $args; });
+               $this->markTestIncomplete('needs adapted class_exists() mock');
 
-               $imageMock = \Mockery::mock('alias:'. Image::class);
-               $imageMock
-                       ->shouldReceive('supportedTypes')
-                       ->andReturn(['image/gif' => 'gif']);
+               $this->l10nMock->shouldReceive('t')->andReturnUsing(function ($args) { return $args; });
 
                $this->setClasses(['Imagick' => true]);
 
@@ -382,11 +379,6 @@ class InstallerTest extends MockedTest
        {
                $this->l10nMock->shouldReceive('t')->andReturnUsing(function ($args) { return $args; });
 
-               $imageMock = \Mockery::mock('alias:' . Image::class);
-               $imageMock
-                       ->shouldReceive('supportedTypes')
-                       ->andReturn([]);
-
                $this->setClasses(['Imagick' => true]);
 
                $install = new Installer();