]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove deprecated expectException from theming tests 32900/head
authorCôme Chilliet <come.chilliet@nextcloud.com>
Thu, 16 Jun 2022 13:56:25 +0000 (15:56 +0200)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Mon, 20 Jun 2022 07:10:11 +0000 (09:10 +0200)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
apps/theming/tests/IconBuilderTest.php

index a365f653e4c43516a49214bd9a41f957d2085dc8..f4ad5bef4ac71a858acdc8e1c0eceac5267c351e 100644 (file)
@@ -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())