diff options
Diffstat (limited to 'tests/api/controllers/tags/PutTagTest.php')
-rw-r--r-- | tests/api/controllers/tags/PutTagTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/api/controllers/tags/PutTagTest.php b/tests/api/controllers/tags/PutTagTest.php index 38017243..c45fa722 100644 --- a/tests/api/controllers/tags/PutTagTest.php +++ b/tests/api/controllers/tags/PutTagTest.php | |||
@@ -33,7 +33,7 @@ class PutTagTest extends \PHPUnit_Framework_TestCase | |||
33 | protected $refDB = null; | 33 | protected $refDB = null; |
34 | 34 | ||
35 | /** | 35 | /** |
36 | * @var \History instance. | 36 | * @var \Shaarli\History instance. |
37 | */ | 37 | */ |
38 | protected $history; | 38 | protected $history; |
39 | 39 | ||
@@ -68,7 +68,7 @@ class PutTagTest extends \PHPUnit_Framework_TestCase | |||
68 | 68 | ||
69 | $refHistory = new \ReferenceHistory(); | 69 | $refHistory = new \ReferenceHistory(); |
70 | $refHistory->write(self::$testHistory); | 70 | $refHistory->write(self::$testHistory); |
71 | $this->history = new \History(self::$testHistory); | 71 | $this->history = new \Shaarli\History(self::$testHistory); |
72 | 72 | ||
73 | $this->container = new Container(); | 73 | $this->container = new Container(); |
74 | $this->container['conf'] = $this->conf; | 74 | $this->container['conf'] = $this->conf; |
@@ -113,12 +113,12 @@ class PutTagTest extends \PHPUnit_Framework_TestCase | |||
113 | $this->assertEquals(2, $tags[$newName]); | 113 | $this->assertEquals(2, $tags[$newName]); |
114 | 114 | ||
115 | $historyEntry = $this->history->getHistory()[0]; | 115 | $historyEntry = $this->history->getHistory()[0]; |
116 | $this->assertEquals(\History::UPDATED, $historyEntry['event']); | 116 | $this->assertEquals(\Shaarli\History::UPDATED, $historyEntry['event']); |
117 | $this->assertTrue( | 117 | $this->assertTrue( |
118 | (new \DateTime())->add(\DateInterval::createFromDateString('-5 seconds')) < $historyEntry['datetime'] | 118 | (new \DateTime())->add(\DateInterval::createFromDateString('-5 seconds')) < $historyEntry['datetime'] |
119 | ); | 119 | ); |
120 | $historyEntry = $this->history->getHistory()[1]; | 120 | $historyEntry = $this->history->getHistory()[1]; |
121 | $this->assertEquals(\History::UPDATED, $historyEntry['event']); | 121 | $this->assertEquals(\Shaarli\History::UPDATED, $historyEntry['event']); |
122 | $this->assertTrue( | 122 | $this->assertTrue( |
123 | (new \DateTime())->add(\DateInterval::createFromDateString('-5 seconds')) < $historyEntry['datetime'] | 123 | (new \DateTime())->add(\DateInterval::createFromDateString('-5 seconds')) < $historyEntry['datetime'] |
124 | ); | 124 | ); |