aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/api/controllers/links/DeleteLinkTest.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2018-12-03 01:10:39 +0100
committerVirtualTam <virtualtam@flibidi.net>2019-01-12 22:47:48 +0100
commitf24896b237e40718fb6eaa2869592eb0855a47fd (patch)
tree32ca9a3e096981840426a9b762d57ec8db2ecbee /tests/api/controllers/links/DeleteLinkTest.php
parenta0c4dbd91c41b9ecdd5176c1ac33b55e240d2392 (diff)
downloadShaarli-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/DeleteLinkTest.php')
-rw-r--r--tests/api/controllers/links/DeleteLinkTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/api/controllers/links/DeleteLinkTest.php b/tests/api/controllers/links/DeleteLinkTest.php
index 07371e7a..adca9a4e 100644
--- a/tests/api/controllers/links/DeleteLinkTest.php
+++ b/tests/api/controllers/links/DeleteLinkTest.php
@@ -32,7 +32,7 @@ class DeleteLinkTest extends \PHPUnit_Framework_TestCase
32 protected $refDB = null; 32 protected $refDB = null;
33 33
34 /** 34 /**
35 * @var \LinkDB instance. 35 * @var \Shaarli\Bookmark\LinkDB instance.
36 */ 36 */
37 protected $linkDB; 37 protected $linkDB;
38 38
@@ -59,7 +59,7 @@ class DeleteLinkTest extends \PHPUnit_Framework_TestCase
59 $this->conf = new ConfigManager('tests/utils/config/configJson'); 59 $this->conf = new ConfigManager('tests/utils/config/configJson');
60 $this->refDB = new \ReferenceLinkDB(); 60 $this->refDB = new \ReferenceLinkDB();
61 $this->refDB->write(self::$testDatastore); 61 $this->refDB->write(self::$testDatastore);
62 $this->linkDB = new \LinkDB(self::$testDatastore, true, false); 62 $this->linkDB = new \Shaarli\Bookmark\LinkDB(self::$testDatastore, true, false);
63 $refHistory = new \ReferenceHistory(); 63 $refHistory = new \ReferenceHistory();
64 $refHistory->write(self::$testHistory); 64 $refHistory->write(self::$testHistory);
65 $this->history = new \Shaarli\History(self::$testHistory); 65 $this->history = new \Shaarli\History(self::$testHistory);
@@ -96,7 +96,7 @@ class DeleteLinkTest extends \PHPUnit_Framework_TestCase
96 $this->assertEquals(204, $response->getStatusCode()); 96 $this->assertEquals(204, $response->getStatusCode());
97 $this->assertEmpty((string) $response->getBody()); 97 $this->assertEmpty((string) $response->getBody());
98 98
99 $this->linkDB = new \LinkDB(self::$testDatastore, true, false); 99 $this->linkDB = new \Shaarli\Bookmark\LinkDB(self::$testDatastore, true, false);
100 $this->assertFalse(isset($this->linkDB[$id])); 100 $this->assertFalse(isset($this->linkDB[$id]));
101 101
102 $historyEntry = $this->history->getHistory()[0]; 102 $historyEntry = $this->history->getHistory()[0];