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