aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/utils
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-05-07 17:40:17 +0200
committerGitHub <noreply@github.com>2017-05-07 17:40:17 +0200
commitb4189928f84758e1589715dfe04e2d966a4f3b88 (patch)
treef17b8fa91fe8244fed7a913d64ce3220551916ff /tests/utils
parenta4af59f47103a3f9c903eeddb1e30ab9cb7344f0 (diff)
parentb86aeccf6a99a9617c66cded7252a33b1df560cd (diff)
downloadShaarli-b4189928f84758e1589715dfe04e2d966a4f3b88.tar.gz
Shaarli-b4189928f84758e1589715dfe04e2d966a4f3b88.tar.zst
Shaarli-b4189928f84758e1589715dfe04e2d966a4f3b88.zip
Merge pull request #858 from ArthurHoaro/api/history-entries
Add history entries for API endpoint
Diffstat (limited to 'tests/utils')
-rw-r--r--tests/utils/ReferenceHistory.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/utils/ReferenceHistory.php b/tests/utils/ReferenceHistory.php
index 20284770..75cbb326 100644
--- a/tests/utils/ReferenceHistory.php
+++ b/tests/utils/ReferenceHistory.php
@@ -15,15 +15,14 @@ class ReferenceHistory
15 public function __construct() 15 public function __construct()
16 { 16 {
17 $this->addEntry( 17 $this->addEntry(
18 History::CREATED, 18 History::DELETED,
19 DateTime::createFromFormat('Ymd_His', '20170101_121212'), 19 DateTime::createFromFormat('Ymd_His', '20170303_121216'),
20 123 20 124
21 ); 21 );
22 22
23 $this->addEntry( 23 $this->addEntry(
24 History::CREATED, 24 History::SETTINGS,
25 DateTime::createFromFormat('Ymd_His', '20170201_121214'), 25 DateTime::createFromFormat('Ymd_His', '20170302_121215')
26 124
27 ); 26 );
28 27
29 $this->addEntry( 28 $this->addEntry(
@@ -33,14 +32,15 @@ class ReferenceHistory
33 ); 32 );
34 33
35 $this->addEntry( 34 $this->addEntry(
36 History::SETTINGS, 35 History::CREATED,
37 DateTime::createFromFormat('Ymd_His', '20170302_121215') 36 DateTime::createFromFormat('Ymd_His', '20170201_121214'),
37 124
38 ); 38 );
39 39
40 $this->addEntry( 40 $this->addEntry(
41 History::DELETED, 41 History::CREATED,
42 DateTime::createFromFormat('Ymd_His', '20170303_121216'), 42 DateTime::createFromFormat('Ymd_His', '20170101_121212'),
43 124 43 123
44 ); 44 );
45 } 45 }
46 46