]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tests/api/controllers/history/HistoryTest.php
Merge pull request #1569 from ArthurHoaro/fix/bad-encoding
[github/shaarli/Shaarli.git] / tests / api / controllers / history / HistoryTest.php
index e287f239eea24fe746ccf894f1b464c3769206de..40f26b12f9bcdae33546587565ca5db03dc3ef0f 100644 (file)
@@ -39,11 +39,11 @@ class HistoryTest extends \PHPUnit\Framework\TestCase
     protected $controller;
 
     /**
-     * Before every test, instantiate a new Api with its config, plugins and links.
+     * Before every test, instantiate a new Api with its config, plugins and bookmarks.
      */
-    public function setUp()
+    protected function setUp(): void
     {
-        $this->conf = new ConfigManager('tests/utils/config/configJson.json.php');
+        $this->conf = new ConfigManager('tests/utils/config/configJson');
         $this->refHistory = new \ReferenceHistory();
         $this->refHistory->write(self::$testHistory);
         $this->container = new Container();
@@ -57,7 +57,7 @@ class HistoryTest extends \PHPUnit\Framework\TestCase
     /**
      * After every test, remove the test datastore.
      */
-    public function tearDown()
+    protected function tearDown(): void
     {
         @unlink(self::$testHistory);
     }