3 * BaseObjectTest class.
6 namespace Friendica\Test\src;
8 use Friendica\BaseObject;
9 use Friendica\Test\Util\AppMockTrait;
10 use Friendica\Test\Util\VFSTrait;
11 use PHPUnit\Framework\TestCase;
14 * Tests for the BaseObject class.
16 class BaseObjectTest extends TestCase
27 * Test the setApp() and getApp() function.
30 public function testGetSetApp()
32 $baseObject = new BaseObject();
34 $this->mockApp($this->root);
36 $baseObject->setApp($this->app);
37 $this->assertEquals($this->app, $baseObject->getApp());
41 * Test the getApp() function without App
42 * @expectedException Friendica\Network\HTTPException\InternalServerErrorException
43 * @runInSeparateProcess
44 * @preserveGlobalState disabled
46 public function testGetAppFailed()