diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-09-29 14:41:40 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-09-29 18:57:20 +0200 |
commit | a5a9cf23acd1248585173aa32757d9720b5f2d62 (patch) | |
tree | 5b443e09fc0f84db0cb478cda0c88c10346b0843 /tests/legacy/LegacyLinkDBTest.php | |
parent | 2b7a7bc928fb7fc171138e248d3aa1d86d5b62f9 (diff) | |
download | Shaarli-a5a9cf23acd1248585173aa32757d9720b5f2d62.tar.gz Shaarli-a5a9cf23acd1248585173aa32757d9720b5f2d62.tar.zst Shaarli-a5a9cf23acd1248585173aa32757d9720b5f2d62.zip |
Compatibility with PHPUnit 9
Diffstat (limited to 'tests/legacy/LegacyLinkDBTest.php')
-rw-r--r-- | tests/legacy/LegacyLinkDBTest.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/legacy/LegacyLinkDBTest.php b/tests/legacy/LegacyLinkDBTest.php index 819bc272..66746dfc 100644 --- a/tests/legacy/LegacyLinkDBTest.php +++ b/tests/legacy/LegacyLinkDBTest.php | |||
@@ -18,7 +18,7 @@ require_once 'tests/utils/ReferenceLinkDB.php'; | |||
18 | /** | 18 | /** |
19 | * Unitary tests for LegacyLinkDBTest | 19 | * Unitary tests for LegacyLinkDBTest |
20 | */ | 20 | */ |
21 | class LegacyLinkDBTest extends \PHPUnit\Framework\TestCase | 21 | class LegacyLinkDBTest extends \Shaarli\TestCase |
22 | { | 22 | { |
23 | // datastore to test write operations | 23 | // datastore to test write operations |
24 | protected static $testDatastore = 'sandbox/datastore.php'; | 24 | protected static $testDatastore = 'sandbox/datastore.php'; |
@@ -258,7 +258,7 @@ class LegacyLinkDBTest extends \PHPUnit\Framework\TestCase | |||
258 | $link = self::$publicLinkDB->getLinkFromUrl('http://mediagoblin.org/'); | 258 | $link = self::$publicLinkDB->getLinkFromUrl('http://mediagoblin.org/'); |
259 | 259 | ||
260 | $this->assertNotEquals(false, $link); | 260 | $this->assertNotEquals(false, $link); |
261 | $this->assertContains( | 261 | $this->assertContainsPolyfill( |
262 | 'A free software media publishing platform', | 262 | 'A free software media publishing platform', |
263 | $link['description'] | 263 | $link['description'] |
264 | ); | 264 | ); |
@@ -471,9 +471,9 @@ class LegacyLinkDBTest extends \PHPUnit\Framework\TestCase | |||
471 | 471 | ||
472 | $res = $linkDB->renameTag('cartoon', 'Taz'); | 472 | $res = $linkDB->renameTag('cartoon', 'Taz'); |
473 | $this->assertEquals(3, count($res)); | 473 | $this->assertEquals(3, count($res)); |
474 | $this->assertContains(' Taz ', $linkDB[4]['tags']); | 474 | $this->assertContainsPolyfill(' Taz ', $linkDB[4]['tags']); |
475 | $this->assertContains(' Taz ', $linkDB[1]['tags']); | 475 | $this->assertContainsPolyfill(' Taz ', $linkDB[1]['tags']); |
476 | $this->assertContains(' Taz ', $linkDB[0]['tags']); | 476 | $this->assertContainsPolyfill(' Taz ', $linkDB[0]['tags']); |
477 | } | 477 | } |
478 | 478 | ||
479 | /** | 479 | /** |
@@ -513,7 +513,7 @@ class LegacyLinkDBTest extends \PHPUnit\Framework\TestCase | |||
513 | 513 | ||
514 | $res = $linkDB->renameTag('cartoon', null); | 514 | $res = $linkDB->renameTag('cartoon', null); |
515 | $this->assertEquals(3, count($res)); | 515 | $this->assertEquals(3, count($res)); |
516 | $this->assertNotContains('cartoon', $linkDB[4]['tags']); | 516 | $this->assertNotContainsPolyfill('cartoon', $linkDB[4]['tags']); |
517 | } | 517 | } |
518 | 518 | ||
519 | /** | 519 | /** |