]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tests/api/controllers/HistoryTest.php
Add history entries for API endpoint
[github/shaarli/Shaarli.git] / tests / api / controllers / HistoryTest.php
index 21e9c0ba41cd8f8dbf0a3f4543c676bf74658621..61046d9732e78439c10aa028c7ddb3720583d9aa 100644 (file)
@@ -29,11 +29,6 @@ class HistoryTest extends \PHPUnit_Framework_TestCase
      */
     protected $refHistory = null;
 
-    /**
-     * @var \History instance.
-     */
-    protected $history;
-
     /**
      * @var Container instance.
      */
@@ -52,10 +47,10 @@ class HistoryTest extends \PHPUnit_Framework_TestCase
         $this->conf = new ConfigManager('tests/utils/config/configJson.json.php');
         $this->refHistory = new \ReferenceHistory();
         $this->refHistory->write(self::$testHistory);
-        $this->conf->set('resource.history', self::$testHistory);
         $this->container = new Container();
         $this->container['conf'] = $this->conf;
         $this->container['db'] = true;
+        $this->container['history'] = new \History(self::$testHistory);
 
         $this->controller = new History($this->container);
     }