Fixed BaseObjectTest

This commit is contained in:
Philipp Holzer 2018-12-30 22:21:05 +01:00 committed by Hypolite Petovan
parent fe8f0e0045
commit 438f31ff05

View File

@ -7,7 +7,7 @@ namespace Friendica\Test;
use Friendica\App; use Friendica\App;
use Friendica\BaseObject; use Friendica\BaseObject;
use Monolog\Logger; use Friendica\Core\Logger;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
/** /**
@ -39,7 +39,7 @@ class BaseObjectTest extends TestCase
*/ */
public function testSetApp() public function testSetApp()
{ {
$logger = Logger::create('test', 'baseobject'); $logger = Logger::create('test');
$app = new App(__DIR__ . '/../../', $logger); $app = new App(__DIR__ . '/../../', $logger);
$this->assertNull($this->baseObject->setApp($app)); $this->assertNull($this->baseObject->setApp($app));
$this->assertEquals($app, $this->baseObject->getApp()); $this->assertEquals($app, $this->baseObject->getApp());