diff options
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 | } |