diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-10-13 13:56:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-13 13:56:07 +0200 |
commit | 4a26974a4b36362d25d8a3a029eac539685c03f6 (patch) | |
tree | 4f34052788a08be1a30cb88c3339ae14e0b7c4da /tests/HistoryTest.php | |
parent | 29c31b7ec6ca48ba37b7eb6da650931fd0cb7164 (diff) | |
parent | efb7d21b52eb033530e80e5e49d175e6e3b031f4 (diff) | |
download | Shaarli-4a26974a4b36362d25d8a3a029eac539685c03f6.tar.gz Shaarli-4a26974a4b36362d25d8a3a029eac539685c03f6.tar.zst Shaarli-4a26974a4b36362d25d8a3a029eac539685c03f6.zip |
Merge pull request #1583 from ArthurHoaro/feature/bookmark-strict-types
Add strict types for bookmarks management
Diffstat (limited to 'tests/HistoryTest.php')
-rw-r--r-- | tests/HistoryTest.php | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/HistoryTest.php b/tests/HistoryTest.php index 6dc0e5b7..e810104e 100644 --- a/tests/HistoryTest.php +++ b/tests/HistoryTest.php | |||
@@ -89,14 +89,6 @@ class HistoryTest extends \Shaarli\TestCase | |||
89 | $this->assertEquals(History::CREATED, $actual['event']); | 89 | $this->assertEquals(History::CREATED, $actual['event']); |
90 | $this->assertTrue(new DateTime('-2 seconds') < $actual['datetime']); | 90 | $this->assertTrue(new DateTime('-2 seconds') < $actual['datetime']); |
91 | $this->assertEquals(1, $actual['id']); | 91 | $this->assertEquals(1, $actual['id']); |
92 | |||
93 | $history = new History(self::$historyFilePath); | ||
94 | $bookmark = (new Bookmark())->setId('str'); | ||
95 | $history->addLink($bookmark); | ||
96 | $actual = $history->getHistory()[0]; | ||
97 | $this->assertEquals(History::CREATED, $actual['event']); | ||
98 | $this->assertTrue(new DateTime('-2 seconds') < $actual['datetime']); | ||
99 | $this->assertEquals('str', $actual['id']); | ||
100 | } | 92 | } |
101 | 93 | ||
102 | // /** | 94 | // /** |