Browse Source
Merge pull request #8163 from nextcloud/fix_themeing_test
Fix theming test
pull/8160/head
Roeland Jago Douma
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
6 deletions
-
apps/theming/tests/ThemingDefaultsTest.php
|
|
@ -556,20 +556,20 @@ class ThemingDefaultsTest extends TestCase { |
|
|
|
$this->config |
|
|
|
->expects($this->once()) |
|
|
|
->method('getAppValue') |
|
|
|
->with('theming', 'iOSClientUrl', 'https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8') |
|
|
|
->willReturn('https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8'); |
|
|
|
->with('theming', 'iOSClientUrl', 'https://geo.itunes.apple.com/us/app/nextcloud/id1125420102?mt=8') |
|
|
|
->willReturn('https://geo.itunes.apple.com/us/app/nextcloud/id1125420102?mt=8'); |
|
|
|
|
|
|
|
$this->assertEquals('https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8', $this->template->getiOSClientUrl()); |
|
|
|
$this->assertEquals('https://geo.itunes.apple.com/us/app/nextcloud/id1125420102?mt=8', $this->template->getiOSClientUrl()); |
|
|
|
} |
|
|
|
|
|
|
|
public function testGetCustomiOSURL() { |
|
|
|
$this->config |
|
|
|
->expects($this->once()) |
|
|
|
->method('getAppValue') |
|
|
|
->with('theming', 'iOSClientUrl', 'https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8') |
|
|
|
->willReturn('https://itunes.apple.com/us/app/nextcloud/id1234567890?mt=8'); |
|
|
|
->with('theming', 'iOSClientUrl', 'https://geo.itunes.apple.com/us/app/nextcloud/id1125420102?mt=8') |
|
|
|
->willReturn('https://geo.itunes.apple.com/us/app/nextcloud/id1234567890?mt=8'); |
|
|
|
|
|
|
|
$this->assertEquals('https://itunes.apple.com/us/app/nextcloud/id1234567890?mt=8', $this->template->getiOSClientUrl()); |
|
|
|
$this->assertEquals('https://geo.itunes.apple.com/us/app/nextcloud/id1234567890?mt=8', $this->template->getiOSClientUrl()); |
|
|
|
} |
|
|
|
|
|
|
|
public function testGetDefaultiTunesAppId() { |
|
|
|