diff options
-rw-r--r-- | apps/theming/tests/IconBuilderTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/theming/tests/IconBuilderTest.php b/apps/theming/tests/IconBuilderTest.php index a365f653e4c..f4ad5bef4ac 100644 --- a/apps/theming/tests/IconBuilderTest.php +++ b/apps/theming/tests/IconBuilderTest.php @@ -186,7 +186,7 @@ class IconBuilderTest extends TestCase { public function testGetFaviconNotFound() { $this->checkImagick(); - $this->expectException(Warning::class); + $this->expectWarning(Warning::class); $util = $this->getMockBuilder(Util::class)->disableOriginalConstructor()->getMock(); $iconBuilder = new IconBuilder($this->themingDefaults, $util, $this->imageManager); $this->imageManager->expects($this->once()) @@ -200,7 +200,7 @@ class IconBuilderTest extends TestCase { public function testGetTouchIconNotFound() { $this->checkImagick(); - $this->expectException(Warning::class); + $this->expectWarning(Warning::class); $util = $this->getMockBuilder(Util::class)->disableOriginalConstructor()->getMock(); $iconBuilder = new IconBuilder($this->themingDefaults, $util, $this->imageManager); $util->expects($this->once()) @@ -211,7 +211,7 @@ class IconBuilderTest extends TestCase { public function testColorSvgNotFound() { $this->checkImagick(); - $this->expectException(Warning::class); + $this->expectWarning(Warning::class); $util = $this->getMockBuilder(Util::class)->disableOriginalConstructor()->getMock(); $iconBuilder = new IconBuilder($this->themingDefaults, $util, $this->imageManager); $util->expects($this->once()) |