mirror of
https://github.com/friendica/friendica
synced 2025-04-22 21:10:10 +00:00
Add Monolog
This commit is contained in:
parent
518f28a7bf
commit
2e602afd3e
18 changed files with 736 additions and 164 deletions
|
@ -11,6 +11,8 @@ use Friendica\Core\PConfig;
|
|||
use Friendica\Core\Protocol;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Network\HTTPException;
|
||||
use Friendica\Util\LoggerFactory;
|
||||
use Monolog\Handler\TestHandler;
|
||||
|
||||
require_once __DIR__ . '/../../include/api.php';
|
||||
|
||||
|
@ -22,6 +24,11 @@ require_once __DIR__ . '/../../include/api.php';
|
|||
*/
|
||||
class ApiTest extends DatabaseTest
|
||||
{
|
||||
/**
|
||||
* @var TestHandler Can handle log-outputs
|
||||
*/
|
||||
protected $logOutput;
|
||||
|
||||
/**
|
||||
* Create variables used by tests.
|
||||
*/
|
||||
|
@ -30,6 +37,7 @@ class ApiTest extends DatabaseTest
|
|||
parent::setUp();
|
||||
|
||||
$this->app = BaseObject::getApp();
|
||||
$this->logOutput = LoggerFactory::enableTest($this->app->getLogger());
|
||||
|
||||
// User data that the test database is populated with
|
||||
$this->selfUser = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue