mirror of
https://github.com/friendica/friendica
synced 2025-04-23 19:50:11 +00:00
Add Monolog
This commit is contained in:
parent
518f28a7bf
commit
2e602afd3e
18 changed files with 736 additions and 164 deletions
|
@ -7,6 +7,7 @@ namespace Friendica\Test;
|
|||
|
||||
use Friendica\App;
|
||||
use Friendica\BaseObject;
|
||||
use Friendica\Util\LoggerFactory;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
|
@ -38,7 +39,9 @@ class BaseObjectTest extends TestCase
|
|||
*/
|
||||
public function testSetApp()
|
||||
{
|
||||
$app = new App(__DIR__ . '/../../');
|
||||
$logger = $logger = LoggerFactory::create('test');
|
||||
$app = new App(__DIR__ . '/../../', $logger);
|
||||
LoggerFactory::enableTest($logger);
|
||||
$this->assertNull($this->baseObject->setApp($app));
|
||||
$this->assertEquals($app, $this->baseObject->getApp());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue