diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2024-09-15 20:55:23 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2024-09-15 20:55:23 +0200 |
commit | 903484a8844f1849fb29b1c8720a2aed2f1ebfa2 (patch) | |
tree | e981383a79be0d4fe1a5a0cf9c80b0bc2bd0865a /apps | |
parent | 5a8d0a2721141f0edccc04feb21f0d35ab40eca9 (diff) | |
download | nextcloud-server-903484a8844f1849fb29b1c8720a2aed2f1ebfa2.tar.gz nextcloud-server-903484a8844f1849fb29b1c8720a2aed2f1ebfa2.zip |
refactor: migrate dirname to __DIR__ constantsrefactor/dirname-to-dir
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/theming/tests/IconBuilderTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/theming/tests/IconBuilderTest.php b/apps/theming/tests/IconBuilderTest.php index 81ea8a5ead3..0d8b8c83923 100644 --- a/apps/theming/tests/IconBuilderTest.php +++ b/apps/theming/tests/IconBuilderTest.php @@ -84,7 +84,7 @@ class IconBuilderTest extends TestCase { ->with('global/images') ->willThrowException(new NotFoundException()); - $expectedIcon = new \Imagick(realpath(dirname(__FILE__)). '/data/' . $file); + $expectedIcon = new \Imagick(realpath(__DIR__). '/data/' . $file); $icon = $this->iconBuilder->renderAppIcon($app, 512); $this->assertEquals(true, $icon->valid()); @@ -113,7 +113,7 @@ class IconBuilderTest extends TestCase { ->with('global/images') ->willThrowException(new NotFoundException()); - $expectedIcon = new \Imagick(realpath(dirname(__FILE__)). '/data/' . $file); + $expectedIcon = new \Imagick(realpath(__DIR__). '/data/' . $file); $icon = new \Imagick(); $icon->readImageBlob($this->iconBuilder->getTouchIcon($app)); @@ -146,7 +146,7 @@ class IconBuilderTest extends TestCase { ->with('global/images') ->willThrowException(new NotFoundException()); - $expectedIcon = new \Imagick(realpath(dirname(__FILE__)). '/data/' . $file); + $expectedIcon = new \Imagick(realpath(__DIR__). '/data/' . $file); $actualIcon = $this->iconBuilder->getFavicon($app); $icon = new \Imagick(); |