diff options
author | VirtualTam <virtualtam@flibidi.net> | 2018-12-03 01:10:39 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2019-01-12 22:47:48 +0100 |
commit | f24896b237e40718fb6eaa2869592eb0855a47fd (patch) | |
tree | 32ca9a3e096981840426a9b762d57ec8db2ecbee /tests/api/controllers/links/PostLinkTest.php | |
parent | a0c4dbd91c41b9ecdd5176c1ac33b55e240d2392 (diff) | |
download | Shaarli-f24896b237e40718fb6eaa2869592eb0855a47fd.tar.gz Shaarli-f24896b237e40718fb6eaa2869592eb0855a47fd.tar.zst Shaarli-f24896b237e40718fb6eaa2869592eb0855a47fd.zip |
namespacing: \Shaarli\Bookmark\LinkDB
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'tests/api/controllers/links/PostLinkTest.php')
-rw-r--r-- | tests/api/controllers/links/PostLinkTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/api/controllers/links/PostLinkTest.php b/tests/api/controllers/links/PostLinkTest.php index a73f443c..ade07eeb 100644 --- a/tests/api/controllers/links/PostLinkTest.php +++ b/tests/api/controllers/links/PostLinkTest.php | |||
@@ -74,7 +74,7 @@ class PostLinkTest extends TestCase | |||
74 | 74 | ||
75 | $this->container = new Container(); | 75 | $this->container = new Container(); |
76 | $this->container['conf'] = $this->conf; | 76 | $this->container['conf'] = $this->conf; |
77 | $this->container['db'] = new \LinkDB(self::$testDatastore, true, false); | 77 | $this->container['db'] = new \Shaarli\Bookmark\LinkDB(self::$testDatastore, true, false); |
78 | $this->container['history'] = new \Shaarli\History(self::$testHistory); | 78 | $this->container['history'] = new \Shaarli\History(self::$testHistory); |
79 | 79 | ||
80 | $this->controller = new Links($this->container); | 80 | $this->controller = new Links($this->container); |
@@ -210,11 +210,11 @@ class PostLinkTest extends TestCase | |||
210 | $this->assertEquals(['gnu', 'media', 'web', '.hidden', 'hashtag'], $data['tags']); | 210 | $this->assertEquals(['gnu', 'media', 'web', '.hidden', 'hashtag'], $data['tags']); |
211 | $this->assertEquals(false, $data['private']); | 211 | $this->assertEquals(false, $data['private']); |
212 | $this->assertEquals( | 212 | $this->assertEquals( |
213 | \DateTime::createFromFormat(\LinkDB::LINK_DATE_FORMAT, '20130614_184135'), | 213 | \DateTime::createFromFormat(\Shaarli\Bookmark\LinkDB::LINK_DATE_FORMAT, '20130614_184135'), |
214 | \DateTime::createFromFormat(\DateTime::ATOM, $data['created']) | 214 | \DateTime::createFromFormat(\DateTime::ATOM, $data['created']) |
215 | ); | 215 | ); |
216 | $this->assertEquals( | 216 | $this->assertEquals( |
217 | \DateTime::createFromFormat(\LinkDB::LINK_DATE_FORMAT, '20130615_184230'), | 217 | \DateTime::createFromFormat(\Shaarli\Bookmark\LinkDB::LINK_DATE_FORMAT, '20130615_184230'), |
218 | \DateTime::createFromFormat(\DateTime::ATOM, $data['updated']) | 218 | \DateTime::createFromFormat(\DateTime::ATOM, $data['updated']) |
219 | ); | 219 | ); |
220 | } | 220 | } |