]> git.mxchange.org Git - friendica.git/blob - tests/Util/AppDouble.php
Sadly mark incomplete Twitter/ContactEndpoint tests
[friendica.git] / tests / Util / AppDouble.php
1 <?php
2
3 namespace Friendica\Test\Util;
4
5 use Friendica\App;
6
7 /**
8  * Making the App class overridable for specific situations
9  *
10  * @see App
11  */
12 class AppDouble extends App
13 {
14         /** @var bool Marks/Overwrites if the user is currently logged in */
15         protected $isLoggedIn = false;
16
17         /**
18          * Manually overwrite the "isLoggedIn" behavior
19          *
20          * @param bool $isLoggedIn
21          */
22         public function setIsLoggedIn(bool $isLoggedIn)
23         {
24                 $this->isLoggedIn = $isLoggedIn;
25         }
26
27         public function isLoggedIn()
28         {
29                 return $this->isLoggedIn;
30         }
31 }