* BaseObjectTest class.
*/
-namespace Friendica\Test;
+namespace Friendica\Test\src;
use Friendica\BaseObject;
use Friendica\Test\Util\AppMockTrait;
*/
private $baseObject;
- /**
- * Test the setApp() and getApp() function.
- * @return void
- */
- public function testGetSetApp()
- {
- $baseObject = new BaseObject();
- $this->setUpVfsDir();
- $configMock = \Mockery::mock('Friendica\Core\Config\ConfigCache');
- $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
*/
public function testGetAppFailed()
{
- $baseObject = new BaseObject();
- $baseObject->getApp();
+ BaseObject::getApp();
}
}