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/PutLinkTest.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/PutLinkTest.php')
-rw-r--r-- | tests/api/controllers/links/PutLinkTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/api/controllers/links/PutLinkTest.php b/tests/api/controllers/links/PutLinkTest.php index 3bb4d43f..eb6c7955 100644 --- a/tests/api/controllers/links/PutLinkTest.php +++ b/tests/api/controllers/links/PutLinkTest.php | |||
@@ -66,7 +66,7 @@ class PutLinkTest extends \PHPUnit_Framework_TestCase | |||
66 | 66 | ||
67 | $this->container = new Container(); | 67 | $this->container = new Container(); |
68 | $this->container['conf'] = $this->conf; | 68 | $this->container['conf'] = $this->conf; |
69 | $this->container['db'] = new \LinkDB(self::$testDatastore, true, false); | 69 | $this->container['db'] = new \Shaarli\Bookmark\LinkDB(self::$testDatastore, true, false); |
70 | $this->container['history'] = new \Shaarli\History(self::$testHistory); | 70 | $this->container['history'] = new \Shaarli\History(self::$testHistory); |
71 | 71 | ||
72 | $this->controller = new Links($this->container); | 72 | $this->controller = new Links($this->container); |
@@ -198,11 +198,11 @@ class PutLinkTest extends \PHPUnit_Framework_TestCase | |||
198 | $this->assertEquals(['gnu', 'media', 'web', '.hidden', 'hashtag'], $data['tags']); | 198 | $this->assertEquals(['gnu', 'media', 'web', '.hidden', 'hashtag'], $data['tags']); |
199 | $this->assertEquals(false, $data['private']); | 199 | $this->assertEquals(false, $data['private']); |
200 | $this->assertEquals( | 200 | $this->assertEquals( |
201 | \DateTime::createFromFormat(\LinkDB::LINK_DATE_FORMAT, '20130614_184135'), | 201 | \DateTime::createFromFormat(\Shaarli\Bookmark\LinkDB::LINK_DATE_FORMAT, '20130614_184135'), |
202 | \DateTime::createFromFormat(\DateTime::ATOM, $data['created']) | 202 | \DateTime::createFromFormat(\DateTime::ATOM, $data['created']) |
203 | ); | 203 | ); |
204 | $this->assertEquals( | 204 | $this->assertEquals( |
205 | \DateTime::createFromFormat(\LinkDB::LINK_DATE_FORMAT, '20130615_184230'), | 205 | \DateTime::createFromFormat(\Shaarli\Bookmark\LinkDB::LINK_DATE_FORMAT, '20130615_184230'), |
206 | \DateTime::createFromFormat(\DateTime::ATOM, $data['updated']) | 206 | \DateTime::createFromFormat(\DateTime::ATOM, $data['updated']) |
207 | ); | 207 | ); |
208 | } | 208 | } |