adjust tests
This commit is contained in:
parent
d7912f6371
commit
d8be836ed7
@ -35,12 +35,6 @@ class d3_account_totp extends AccountController
|
||||
{
|
||||
$sRet = parent::render();
|
||||
|
||||
/** @var User|null $oUser */
|
||||
$oUser = $this->getUser();
|
||||
if (false === $oUser instanceof User) {
|
||||
return $this->_sThisTemplate = $this->_sThisLoginTemplate;
|
||||
}
|
||||
|
||||
$this->addTplParam('user', $this->getUser());
|
||||
|
||||
return $sRet;
|
||||
|
@ -86,7 +86,7 @@ class d3_account_totpTest extends d3TotpUnitTestCase
|
||||
*/
|
||||
public function renderReturnsLoginTemplateIfNotLoggedIn()
|
||||
{
|
||||
$oUser = false;
|
||||
$oUser = null;
|
||||
|
||||
/** @var d3_account_totp|MockObject $oControllerMock */
|
||||
$oControllerMock = $this->getMockBuilder(d3_account_totp::class)
|
||||
|
Loading…
x
Reference in New Issue
Block a user