diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-08-16 08:51:43 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-08-16 08:51:43 +0200 |
commit | 0ea23cad0eefacf2bad73ce3c50bb659480e3f56 (patch) | |
tree | 24911130d8c3129fbb2dc16a759f7d8558d1f284 /apps/theming/tests | |
parent | 4c6be330ef927c2f9881fc54b2e090ec254f3af6 (diff) | |
download | nextcloud-server-0ea23cad0eefacf2bad73ce3c50bb659480e3f56.tar.gz nextcloud-server-0ea23cad0eefacf2bad73ce3c50bb659480e3f56.zip |
Revert "Fix unit tests for the theming app"
This reverts commit 13ca01ee1256dba54d1e2793bd409d3b7c8d6058.
Diffstat (limited to 'apps/theming/tests')
-rw-r--r-- | apps/theming/tests/ImageManagerTest.php | 2 | ||||
-rw-r--r-- | apps/theming/tests/Themes/DefaultThemeTest.php | 19 |
2 files changed, 2 insertions, 19 deletions
diff --git a/apps/theming/tests/ImageManagerTest.php b/apps/theming/tests/ImageManagerTest.php index 0f22a774a39..6a9b77234bb 100644 --- a/apps/theming/tests/ImageManagerTest.php +++ b/apps/theming/tests/ImageManagerTest.php @@ -307,7 +307,7 @@ class ImageManagerTest extends TestCase { foreach ($folders as $index => $folder) { $folder->expects($this->any()) ->method('getName') - ->willReturn((string)$index); + ->willReturn($index); } $folders[0]->expects($this->once())->method('delete'); $folders[1]->expects($this->once())->method('delete'); diff --git a/apps/theming/tests/Themes/DefaultThemeTest.php b/apps/theming/tests/Themes/DefaultThemeTest.php index 5086c5da8ee..160efdba142 100644 --- a/apps/theming/tests/Themes/DefaultThemeTest.php +++ b/apps/theming/tests/Themes/DefaultThemeTest.php @@ -20,7 +20,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ -namespace OCA\Theming\Tests; +namespace OCA\Theming\Tests\Service; use OC\App\AppManager; use OCA\Theming\ImageManager; @@ -68,23 +68,6 @@ class DefaultThemeTest extends TestCase { ->method('getColorPrimary') ->willReturn('#0082c9'); - $this->imageManager->expects($this->any()) - ->method('getImageUrl') - ->willReturnCallback(function (string $name): string { - switch ($name) { - case 'logo': - case 'logoheader': - case 'favicon': - return '/core/img/logo/logo.png?v=0'; - case 'background': - case 'login-background': - return '/core/img/background.png?v=0'; - default: - return ''; - } - }); - - $this->l10n ->expects($this->any()) ->method('t') |