aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/L10N/FactoryTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/L10N/FactoryTest.php')
-rw-r--r--tests/lib/L10N/FactoryTest.php92
1 files changed, 46 insertions, 46 deletions
diff --git a/tests/lib/L10N/FactoryTest.php b/tests/lib/L10N/FactoryTest.php
index 16113c0972f..0f243c124ca 100644
--- a/tests/lib/L10N/FactoryTest.php
+++ b/tests/lib/L10N/FactoryTest.php
@@ -112,9 +112,9 @@ class FactoryTest extends TestCase {
$factory = $this->getFactory(['languageExists']);
$this->invokePrivate($factory, 'requestLanguage', ['de']);
$factory->expects(self::once())
- ->method('languageExists')
- ->with('MyApp', 'de')
- ->willReturn(true);
+ ->method('languageExists')
+ ->with('MyApp', 'de')
+ ->willReturn(true);
self::assertSame('de', $factory->findLanguage('MyApp'));
}
@@ -123,15 +123,15 @@ class FactoryTest extends TestCase {
$factory = $this->getFactory(['languageExists']);
$this->invokePrivate($factory, 'requestLanguage', ['de']);
$factory->expects($this->exactly(2))
- ->method('languageExists')
- ->withConsecutive(
- ['MyApp', 'de'],
- ['MyApp', 'jp'],
- )
- ->willReturnOnConsecutiveCalls(
- false,
- true,
- );
+ ->method('languageExists')
+ ->withConsecutive(
+ ['MyApp', 'de'],
+ ['MyApp', 'jp'],
+ )
+ ->willReturnOnConsecutiveCalls(
+ false,
+ true,
+ );
$this->config
->expects($this->exactly(1))
->method('getSystemValue')
@@ -150,10 +150,10 @@ class FactoryTest extends TestCase {
->method('getUser')
->willReturn($user);
$this->config
- ->expects(self::once())
- ->method('getUserValue')
- ->with('MyUserUid', 'core', 'lang', null)
- ->willReturn('jp');
+ ->expects(self::once())
+ ->method('getUserValue')
+ ->with('MyUserUid', 'core', 'lang', null)
+ ->willReturn('jp');
self::assertSame('jp', $factory->findLanguage('MyApp'));
}
@@ -178,17 +178,17 @@ class FactoryTest extends TestCase {
$user = $this->getMockBuilder(IUser::class)
->getMock();
$user->expects(self::once())
- ->method('getUID')
- ->willReturn('MyUserUid');
+ ->method('getUID')
+ ->willReturn('MyUserUid');
$this->userSession
- ->expects(self::exactly(2))
- ->method('getUser')
- ->willReturn($user);
+ ->expects(self::exactly(2))
+ ->method('getUser')
+ ->willReturn($user);
$this->config
- ->expects(self::once())
- ->method('getUserValue')
- ->with('MyUserUid', 'core', 'lang', null)
- ->willReturn('jp');
+ ->expects(self::once())
+ ->method('getUserValue')
+ ->with('MyUserUid', 'core', 'lang', null)
+ ->willReturn('jp');
self::assertSame('es', $factory->findLanguage('MyApp'));
}
@@ -213,17 +213,17 @@ class FactoryTest extends TestCase {
$user = $this->getMockBuilder(IUser::class)
->getMock();
$user->expects(self::once())
- ->method('getUID')
- ->willReturn('MyUserUid');
+ ->method('getUID')
+ ->willReturn('MyUserUid');
$this->userSession
- ->expects(self::exactly(2))
- ->method('getUser')
- ->willReturn($user);
+ ->expects(self::exactly(2))
+ ->method('getUser')
+ ->willReturn($user);
$this->config
- ->expects(self::once())
- ->method('getUserValue')
- ->with('MyUserUid', 'core', 'lang', null)
- ->willReturn('jp');
+ ->expects(self::once())
+ ->method('getUserValue')
+ ->with('MyUserUid', 'core', 'lang', null)
+ ->willReturn('jp');
$this->config
->expects(self::never())
->method('setUserValue');
@@ -251,21 +251,21 @@ class FactoryTest extends TestCase {
$user = $this->getMockBuilder(IUser::class)
->getMock();
$user->expects(self::once())
- ->method('getUID')
- ->willReturn('MyUserUid');
+ ->method('getUID')
+ ->willReturn('MyUserUid');
$this->userSession
- ->expects(self::exactly(2))
- ->method('getUser')
- ->willReturn($user);
+ ->expects(self::exactly(2))
+ ->method('getUser')
+ ->willReturn($user);
$this->config
- ->expects(self::once())
- ->method('getUserValue')
- ->with('MyUserUid', 'core', 'lang', null)
- ->willReturn('jp');
+ ->expects(self::once())
+ ->method('getUserValue')
+ ->with('MyUserUid', 'core', 'lang', null)
+ ->willReturn('jp');
$this->config
- ->expects(self::never())
- ->method('setUserValue')
- ->with('MyUserUid', 'core', 'lang', 'en');
+ ->expects(self::never())
+ ->method('setUserValue')
+ ->with('MyUserUid', 'core', 'lang', 'en');
self::assertSame('en', $factory->findLanguage('MyApp'));