diff options
Diffstat (limited to 'apps/theming/tests/ImageManagerTest.php')
-rw-r--r-- | apps/theming/tests/ImageManagerTest.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/theming/tests/ImageManagerTest.php b/apps/theming/tests/ImageManagerTest.php index 56fa63bea7b..7d61b80efdf 100644 --- a/apps/theming/tests/ImageManagerTest.php +++ b/apps/theming/tests/ImageManagerTest.php @@ -184,10 +184,10 @@ class ImageManagerTest extends TestCase { $this->assertEquals($file, $this->imageManager->getImage('logo', false)); } - /** - * @expectedException OCP\Files\NotFoundException - */ + public function testGetImageUnset() { + $this->expectException(\OCP\Files\NotFoundException::class); + $this->config->expects($this->once()) ->method('getAppValue')->with('theming', 'logoMime', false) ->willReturn(false); @@ -239,10 +239,10 @@ class ImageManagerTest extends TestCase { $this->assertEquals($expected, $this->imageManager->getCachedImage('filename')); } - /** - * @expectedException \OCP\Files\NotFoundException - */ + public function testGetCachedImageNotFound() { + $this->expectException(\OCP\Files\NotFoundException::class); + $folder = $this->setupCacheFolder(); $folder->expects($this->once()) ->method('getFile') |