diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-09-26 15:08:39 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-09-26 15:08:39 +0200 |
commit | 8f60e1206e45e67c96a7630d4ff94e72fe875f09 (patch) | |
tree | 20621c50f6822c42589acffc45d475f46586c69d /tests/api/controllers/links/GetLinkIdTest.php | |
parent | 24225f63324bd1118b008518abfc82a136ad997e (diff) | |
download | Shaarli-8f60e1206e45e67c96a7630d4ff94e72fe875f09.tar.gz Shaarli-8f60e1206e45e67c96a7630d4ff94e72fe875f09.tar.zst Shaarli-8f60e1206e45e67c96a7630d4ff94e72fe875f09.zip |
Comply with PHPUnit V8: setup/teardown functions must return void
Diffstat (limited to 'tests/api/controllers/links/GetLinkIdTest.php')
-rw-r--r-- | tests/api/controllers/links/GetLinkIdTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/api/controllers/links/GetLinkIdTest.php b/tests/api/controllers/links/GetLinkIdTest.php index 8bb81dc8..ee42e259 100644 --- a/tests/api/controllers/links/GetLinkIdTest.php +++ b/tests/api/controllers/links/GetLinkIdTest.php | |||
@@ -55,7 +55,7 @@ class GetLinkIdTest extends \PHPUnit\Framework\TestCase | |||
55 | /** | 55 | /** |
56 | * Before each test, instantiate a new Api with its config, plugins and bookmarks. | 56 | * Before each test, instantiate a new Api with its config, plugins and bookmarks. |
57 | */ | 57 | */ |
58 | public function setUp() | 58 | protected function setUp(): void |
59 | { | 59 | { |
60 | $this->conf = new ConfigManager('tests/utils/config/configJson'); | 60 | $this->conf = new ConfigManager('tests/utils/config/configJson'); |
61 | $this->conf->set('resource.datastore', self::$testDatastore); | 61 | $this->conf->set('resource.datastore', self::$testDatastore); |
@@ -74,7 +74,7 @@ class GetLinkIdTest extends \PHPUnit\Framework\TestCase | |||
74 | /** | 74 | /** |
75 | * After each test, remove the test datastore. | 75 | * After each test, remove the test datastore. |
76 | */ | 76 | */ |
77 | public function tearDown() | 77 | protected function tearDown(): void |
78 | { | 78 | { |
79 | @unlink(self::$testDatastore); | 79 | @unlink(self::$testDatastore); |
80 | } | 80 | } |