Skip to content

Commit

Permalink
Remove deprecated expectException from theming tests
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Jun 16, 2022
1 parent f8a5be6 commit 454ec48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,7 @@

AddDefaultCharset utf-8
Options -Indexes
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####

ErrorDocument 403 /
ErrorDocument 404 /
6 changes: 3 additions & 3 deletions apps/theming/tests/IconBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function testGetFavicon($app, $color, $file) {

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())
Expand All @@ -200,7 +200,7 @@ public function testGetFaviconNotFound() {

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())
Expand All @@ -211,7 +211,7 @@ public function testGetTouchIconNotFound() {

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())
Expand Down

0 comments on commit 454ec48

Please sign in to comment.