diff --git a/tests/lib/Authentication/Login/ALoginCommandTest.php b/tests/lib/Authentication/Login/ALoginCommandTest.php index 03cc7dfadc737..7c66e102704f9 100644 --- a/tests/lib/Authentication/Login/ALoginCommandTest.php +++ b/tests/lib/Authentication/Login/ALoginCommandTest.php @@ -22,7 +22,7 @@ declare(strict_types=1); -namespace lib\Authentication\Login; +namespace Test\Authentication\Login; use OC\Authentication\Login\ALoginCommand; use OC\Authentication\Login\LoginData; diff --git a/tests/lib/Authentication/Login/ClearLostPasswordTokensCommandTest.php b/tests/lib/Authentication/Login/ClearLostPasswordTokensCommandTest.php index 49c81b4f38576..ded03cd95cdb6 100644 --- a/tests/lib/Authentication/Login/ClearLostPasswordTokensCommandTest.php +++ b/tests/lib/Authentication/Login/ClearLostPasswordTokensCommandTest.php @@ -25,7 +25,6 @@ namespace Test\Authentication\Login; -use lib\Authentication\Login\ALoginCommandTest; use OC\Authentication\Login\ClearLostPasswordTokensCommand; use OCP\IConfig; use PHPUnit\Framework\MockObject\MockObject; diff --git a/tests/lib/Authentication/Login/CompleteLoginCommandTest.php b/tests/lib/Authentication/Login/CompleteLoginCommandTest.php index 7d6152f97a1ca..f90de10cdda1e 100644 --- a/tests/lib/Authentication/Login/CompleteLoginCommandTest.php +++ b/tests/lib/Authentication/Login/CompleteLoginCommandTest.php @@ -23,7 +23,7 @@ declare(strict_types=1); -namespace lib\Authentication\Login; +namespace Test\Authentication\Login; use OC\Authentication\Login\CompleteLoginCommand; use OC\User\Session; diff --git a/tests/lib/Authentication/Login/CreateSessionTokenCommandTest.php b/tests/lib/Authentication/Login/CreateSessionTokenCommandTest.php index 9e49413e344e1..ef23e072c60ae 100644 --- a/tests/lib/Authentication/Login/CreateSessionTokenCommandTest.php +++ b/tests/lib/Authentication/Login/CreateSessionTokenCommandTest.php @@ -23,7 +23,7 @@ declare(strict_types=1); -namespace lib\Authentication\Login; +namespace Test\Authentication\Login; use OC\Authentication\Login\CreateSessionTokenCommand; use OC\Authentication\Token\IToken; @@ -54,7 +54,7 @@ protected function setUp(): void { public function testProcess() { $data = $this->getLoggedInLoginData(); $this->config->expects($this->once()) - ->method('getSystemValue') + ->method('getSystemValueInt') ->with( 'remember_login_cookie_lifetime', 60 * 60 * 24 * 15 @@ -87,7 +87,7 @@ public function testProcess() { public function testProcessDoNotRemember() { $data = $this->getLoggedInLoginData(); $this->config->expects($this->once()) - ->method('getSystemValue') + ->method('getSystemValueInt') ->with( 'remember_login_cookie_lifetime', 60 * 60 * 24 * 15 diff --git a/tests/lib/Authentication/Login/EmailLoginCommandTest.php b/tests/lib/Authentication/Login/EmailLoginCommandTest.php index 4c1f0bd0e5bf9..9de372148b96b 100644 --- a/tests/lib/Authentication/Login/EmailLoginCommandTest.php +++ b/tests/lib/Authentication/Login/EmailLoginCommandTest.php @@ -23,7 +23,7 @@ declare(strict_types=1); -namespace lib\Authentication\Login; +namespace Test\Authentication\Login; use OC\Authentication\Login\EmailLoginCommand; use OCP\IUser; diff --git a/tests/lib/Authentication/Login/FinishRememberedLoginCommandTest.php b/tests/lib/Authentication/Login/FinishRememberedLoginCommandTest.php index 7b4612194563c..e24a3ca8f8dfa 100644 --- a/tests/lib/Authentication/Login/FinishRememberedLoginCommandTest.php +++ b/tests/lib/Authentication/Login/FinishRememberedLoginCommandTest.php @@ -23,7 +23,7 @@ declare(strict_types=1); -namespace lib\Authentication\Login; +namespace Test\Authentication\Login; use OC\Authentication\Login\FinishRememberedLoginCommand; use OC\User\Session; diff --git a/tests/lib/Authentication/Login/LoggedInCheckCommandTest.php b/tests/lib/Authentication/Login/LoggedInCheckCommandTest.php index 4762c601bb8c6..afe486ab09507 100644 --- a/tests/lib/Authentication/Login/LoggedInCheckCommandTest.php +++ b/tests/lib/Authentication/Login/LoggedInCheckCommandTest.php @@ -23,7 +23,7 @@ declare(strict_types=1); -namespace lib\Authentication\Login; +namespace Test\Authentication\Login; use OC\Authentication\Login\LoggedInCheckCommand; use OC\Core\Controller\LoginController; diff --git a/tests/lib/Authentication/Login/PreLoginHookCommandTest.php b/tests/lib/Authentication/Login/PreLoginHookCommandTest.php index 66822291ba887..d83717399d4d4 100644 --- a/tests/lib/Authentication/Login/PreLoginHookCommandTest.php +++ b/tests/lib/Authentication/Login/PreLoginHookCommandTest.php @@ -23,7 +23,7 @@ declare(strict_types=1); -namespace lib\Authentication\Login; +namespace Test\Authentication\Login; use OC\Authentication\Login\PreLoginHookCommand; use OC\User\Manager; diff --git a/tests/lib/Authentication/Login/SetUserTimezoneCommandTest.php b/tests/lib/Authentication/Login/SetUserTimezoneCommandTest.php index 88514fec237c8..8f7057e9d6906 100644 --- a/tests/lib/Authentication/Login/SetUserTimezoneCommandTest.php +++ b/tests/lib/Authentication/Login/SetUserTimezoneCommandTest.php @@ -23,7 +23,7 @@ declare(strict_types=1); -namespace lib\Authentication\Login; +namespace Test\Authentication\Login; use OC\Authentication\Login\SetUserTimezoneCommand; use OCP\IConfig; diff --git a/tests/lib/Authentication/Login/TwoFactorCommandTest.php b/tests/lib/Authentication/Login/TwoFactorCommandTest.php index 4796aecad2e70..fd37712c130ec 100644 --- a/tests/lib/Authentication/Login/TwoFactorCommandTest.php +++ b/tests/lib/Authentication/Login/TwoFactorCommandTest.php @@ -23,7 +23,7 @@ declare(strict_types=1); -namespace lib\Authentication\Login; +namespace Test\Authentication\Login; use OC\Authentication\Login\TwoFactorCommand; use OC\Authentication\TwoFactorAuth\Manager; diff --git a/tests/lib/Authentication/Login/UidLoginCommandTest.php b/tests/lib/Authentication/Login/UidLoginCommandTest.php index 6e22609631d3b..1f00ba77da437 100644 --- a/tests/lib/Authentication/Login/UidLoginCommandTest.php +++ b/tests/lib/Authentication/Login/UidLoginCommandTest.php @@ -23,7 +23,7 @@ declare(strict_types=1); -namespace lib\Authentication\Login; +namespace Test\Authentication\Login; use OC\Authentication\Login\UidLoginCommand; use OC\User\Manager; diff --git a/tests/lib/Authentication/Login/UpdateLastPasswordConfirmCommandTest.php b/tests/lib/Authentication/Login/UpdateLastPasswordConfirmCommandTest.php index 3db23d471ec0e..3ff82b38acc48 100644 --- a/tests/lib/Authentication/Login/UpdateLastPasswordConfirmCommandTest.php +++ b/tests/lib/Authentication/Login/UpdateLastPasswordConfirmCommandTest.php @@ -23,7 +23,7 @@ declare(strict_types=1); -namespace lib\Authentication\Login; +namespace Test\Authentication\Login; use OC\Authentication\Login\UpdateLastPasswordConfirmCommand; use OCP\ISession; diff --git a/tests/lib/Authentication/Login/UserDisabledCheckCommandTest.php b/tests/lib/Authentication/Login/UserDisabledCheckCommandTest.php index 8c15ebe6c8fb5..65cfd0a71aca1 100644 --- a/tests/lib/Authentication/Login/UserDisabledCheckCommandTest.php +++ b/tests/lib/Authentication/Login/UserDisabledCheckCommandTest.php @@ -23,7 +23,7 @@ declare(strict_types=1); -namespace lib\Authentication\Login; +namespace Test\Authentication\Login; use OC\Authentication\Login\UserDisabledCheckCommand; use OC\Core\Controller\LoginController; diff --git a/tests/lib/Collaboration/Collaborators/LookupPluginTest.php b/tests/lib/Collaboration/Collaborators/LookupPluginTest.php index 0a1febe33a57a..81279c4c56946 100644 --- a/tests/lib/Collaboration/Collaborators/LookupPluginTest.php +++ b/tests/lib/Collaboration/Collaborators/LookupPluginTest.php @@ -97,7 +97,7 @@ public function testSearchNoLookupServerURI() { ->willReturn(false); $this->config->expects($this->at(2)) - ->method('getSystemValue') + ->method('getSystemValueBool') ->with('has_internet_connection', true) ->willReturn(true); $this->config->expects($this->at(3)) @@ -125,7 +125,7 @@ public function testSearchNoInternet() { ->willReturn(false); $this->config->expects($this->at(2)) - ->method('getSystemValue') + ->method('getSystemValueBool') ->with('has_internet_connection', true) ->willReturn(false); @@ -161,7 +161,7 @@ public function testSearch(array $searchParams) { ->willReturn(false); $this->config->expects($this->at(2)) - ->method('getSystemValue') + ->method('getSystemValueBool') ->with('has_internet_connection', true) ->willReturn(true); $this->config->expects($this->at(3)) @@ -224,7 +224,7 @@ public function testSearchEnableDisableLookupServer(array $searchParams, $GSEnab ->with($type, $searchParams['expectedResult'], []); $this->config->expects($this->at(2)) - ->method('getSystemValue') + ->method('getSystemValueBool') ->with('has_internet_connection', true) ->willReturn(true); $this->config->expects($this->at(3))