summaryrefslogtreecommitdiffstats
path: root/apps/theming
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-06-16 15:56:25 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-06-20 09:10:11 +0200
commit293c1797eb971d6c7397ffea21792a4853505970 (patch)
tree0ec5dde41c0b97d4ea5acbd4611cd602e816601d /apps/theming
parentf8a5be6a9071b3b9704242ee65f8b3a21402abe9 (diff)
downloadnextcloud-server-293c1797eb971d6c7397ffea21792a4853505970.tar.gz
nextcloud-server-293c1797eb971d6c7397ffea21792a4853505970.zip
Remove deprecated expectException from theming tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/tests/IconBuilderTest.php6
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())