From 293c1797eb971d6c7397ffea21792a4853505970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Thu, 16 Jun 2022 15:56:25 +0200 Subject: Remove deprecated expectException from theming tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/theming/tests/IconBuilderTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps') 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()) -- cgit v1.2.3