mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:42:54 +00:00
32 lines
523 B
PHP
32 lines
523 B
PHP
|
<?php
|
||
|
|
||
|
namespace Friendica\Test\Util;
|
||
|
|
||
|
use Friendica\App;
|
||
|
|
||
|
/**
|
||
|
* Making the App class overridable for specific situations
|
||
|
*
|
||
|
* @see App
|
||
|
*/
|
||
|
class AppDouble extends App
|
||
|
{
|
||
|
/** @var bool Marks/Overwrites if the user is currently logged in */
|
||
|
protected $isLoggedIn = false;
|
||
|
|
||
|
/**
|
||
|
* Manually overwrite the "isLoggedIn" behavior
|
||
|
*
|
||
|
* @param bool $isLoggedIn
|
||
|
*/
|
||
|
public function setIsLoggedIn(bool $isLoggedIn)
|
||
|
{
|
||
|
$this->isLoggedIn = $isLoggedIn;
|
||
|
}
|
||
|
|
||
|
public function isLoggedIn()
|
||
|
{
|
||
|
return $this->isLoggedIn;
|
||
|
}
|
||
|
}
|