3 * BaseObjectTest class.
6 namespace Friendica\Test;
9 use Friendica\BaseObject;
10 use PHPUnit_Framework_TestCase;
13 * Tests for the BaseObject class.
15 class BaseObjectTest extends PHPUnit_Framework_TestCase
19 * Create variables used in tests.
21 protected function setUp()
23 $this->baseObject = new BaseObject();
27 * Test the getApp() function.
30 public function testGetApp()
32 $this->assertInstanceOf(App::class, $this->baseObject->getApp());
36 * Test the setApp() function.
39 public function testSetApp()
41 $app = new App(__DIR__.'/../');
42 $this->assertNull($this->baseObject->setApp($app));
43 $this->assertEquals($app, $this->baseObject->getApp());