Bläddra i källkod

Skip Imagick Installer test until we can mock class_exists

tags/2019.12
Hypolite Petovan 10 månader sedan
förälder
incheckning
58737c7bd8
1 ändrade filer med 2 tillägg och 10 borttagningar
  1. +2
    -10
      tests/src/Core/InstallerTest.php

+ 2
- 10
tests/src/Core/InstallerTest.php Visa fil

@@ -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();


Laddar…
Avbryt
Spara