setUpVfsDir(); $configMock = \Mockery::mock('Friendica\Core\Config\Configuration'); $this->mockApp($this->root, $configMock); $this->assertNull($baseObject->setApp($this->app)); $this->assertEquals($this->app, $baseObject->getApp()); } /** * Test the getApp() function without App * @expectedException Friendica\Network\HTTPException\InternalServerErrorException * @runInSeparateProcess * @preserveGlobalState disabled */ public function testGetAppFailed() { $baseObject = new BaseObject(); $baseObject->getApp(); } }