*/
private $baseObject;
- /**
- * Test the setApp() and getApp() function.
- * @return void
- */
- public function testGetSetApp()
- {
- $baseObject = new BaseObject();
- $this->setUpVfsDir();
- $this->mockApp($this->root);
-
- $this->assertNull($baseObject->setApp($this->app));
- $this->assertEquals($this->app, $baseObject->getApp());
- }
-
/**
* Test the getApp() function without App
* @expectedException Friendica\Network\HTTPException\InternalServerErrorException
*/
public function testGetAppFailed()
{
- $baseObject = new BaseObject();
- $baseObject->getApp();
+ BaseObject::getApp();
}
}