]> git.mxchange.org Git - friendica.git/blob - tests/src/BaseObjectTest.php
Adding possibility to use a different cache-backend for locking and caching
[friendica.git] / tests / src / BaseObjectTest.php
1 <?php
2 /**
3  * BaseObjectTest class.
4  */
5
6 namespace Friendica\Test\src;
7
8 use Friendica\BaseObject;
9 use Friendica\Test\Util\AppMockTrait;
10 use Friendica\Test\Util\VFSTrait;
11 use PHPUnit\Framework\TestCase;
12
13 /**
14  * Tests for the BaseObject class.
15  */
16 class BaseObjectTest extends TestCase
17 {
18         use VFSTrait;
19         use AppMockTrait;
20
21         /**
22          * @var BaseObject
23          */
24         private $baseObject;
25
26         /**
27          * Test the getApp() function without App
28          * @expectedException Friendica\Network\HTTPException\InternalServerErrorException
29          * @runInSeparateProcess
30          * @preserveGlobalState disabled
31          */
32         public function testGetAppFailed()
33         {
34                 BaseObject::getApp();
35         }
36 }