X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2Fapi%2Fcontrollers%2Fhistory%2FHistoryTest.php;h=84f8716e1308e92a70cdd530b4c0358570ff4ddd;hb=a5a9cf23acd1248585173aa32757d9720b5f2d62;hp=e287f239eea24fe746ccf894f1b464c3769206de;hpb=905f8675a728841b03b300d2c7dc909a1c4f7f03;p=github%2Fshaarli%2FShaarli.git diff --git a/tests/api/controllers/history/HistoryTest.php b/tests/api/controllers/history/HistoryTest.php index e287f239..84f8716e 100644 --- a/tests/api/controllers/history/HistoryTest.php +++ b/tests/api/controllers/history/HistoryTest.php @@ -11,7 +11,7 @@ use Slim\Http\Response; require_once 'tests/utils/ReferenceHistory.php'; -class HistoryTest extends \PHPUnit\Framework\TestCase +class HistoryTest extends \Shaarli\TestCase { /** * @var string datastore to test write operations @@ -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); }