]> git.mxchange.org Git - friendica.git/blobdiff - tests/bootstrap.php
Merge remote-tracking branch 'upstream/develop' into item-notification
[friendica.git] / tests / bootstrap.php
index a839dbed73c832fcfa8ab773bc154a6fd1b251a0..8b4b8ade1ebb473c0ff3ffe62f12fc55ee0de3c0 100644 (file)
@@ -3,9 +3,16 @@
  * This file is loaded by PHPUnit before any test.
  */
 
+use Dice\Dice;
+use Friendica\DI;
 use PHPUnit\Framework\TestCase;
 
 // Backward compatibility
 if (!class_exists(TestCase::class)) {
        class_alias(PHPUnit_Framework_TestCase::class, TestCase::class);
 }
+
+$dice = new Dice();
+$dice = $dice->addRules(include  __DIR__ . '/../static/dependencies.config.php');
+
+DI::init($dice);