diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2020-04-26 10:26:49 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2020-04-28 10:14:46 +0200 |
commit | f5c1ae2dd8ec0b1aabdefb78815163c1223aacba (patch) | |
tree | 50c16a59f882d104bd997cd7e6f6280992d6249d | |
parent | bed075ac07f0acb9722a276cfd85d2f0c1cfd8fc (diff) | |
download | wallabag-f5c1ae2dd8ec0b1aabdefb78815163c1223aacba.tar.gz wallabag-f5c1ae2dd8ec0b1aabdefb78815163c1223aacba.tar.zst wallabag-f5c1ae2dd8ec0b1aabdefb78815163c1223aacba.zip |
Fixed tests
-rw-r--r-- | src/Wallabag/CoreBundle/DataFixtures/EntryFixtures.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/DataFixtures/EntryFixtures.php b/src/Wallabag/CoreBundle/DataFixtures/EntryFixtures.php index 024fcfdc..759845ac 100644 --- a/src/Wallabag/CoreBundle/DataFixtures/EntryFixtures.php +++ b/src/Wallabag/CoreBundle/DataFixtures/EntryFixtures.php | |||
@@ -24,6 +24,7 @@ class EntryFixtures extends Fixture implements DependentFixtureInterface | |||
24 | 'mime' => 'text/html', | 24 | 'mime' => 'text/html', |
25 | 'title' => 'test title entry1', | 25 | 'title' => 'test title entry1', |
26 | 'content' => 'This is my content /o/', | 26 | 'content' => 'This is my content /o/', |
27 | 'created_at' => '2020-04-26 10:00:00', | ||
27 | 'language' => 'en', | 28 | 'language' => 'en', |
28 | 'tags' => ['foo-tag', 'baz-tag'], | 29 | 'tags' => ['foo-tag', 'baz-tag'], |
29 | ], | 30 | ], |
@@ -35,6 +36,7 @@ class EntryFixtures extends Fixture implements DependentFixtureInterface | |||
35 | 'mime' => 'text/html', | 36 | 'mime' => 'text/html', |
36 | 'title' => 'test title entry2', | 37 | 'title' => 'test title entry2', |
37 | 'content' => 'This is my content /o/', | 38 | 'content' => 'This is my content /o/', |
39 | 'created_at' => '2020-04-26 10:01:00', | ||
38 | 'origin' => 'ftp://oneftp.tld', | 40 | 'origin' => 'ftp://oneftp.tld', |
39 | 'language' => 'fr', | 41 | 'language' => 'fr', |
40 | ], | 42 | ], |
@@ -46,6 +48,7 @@ class EntryFixtures extends Fixture implements DependentFixtureInterface | |||
46 | 'mime' => 'text/html', | 48 | 'mime' => 'text/html', |
47 | 'title' => 'test title entry3', | 49 | 'title' => 'test title entry3', |
48 | 'content' => 'This is my content /o/', | 50 | 'content' => 'This is my content /o/', |
51 | 'created_at' => '2020-04-26 10:02:00', | ||
49 | 'language' => 'en', | 52 | 'language' => 'en', |
50 | 'tags' => ['foo-tag', 'bar-tag', 'bob-tag'], | 53 | 'tags' => ['foo-tag', 'bar-tag', 'bob-tag'], |
51 | ], | 54 | ], |
@@ -57,6 +60,7 @@ class EntryFixtures extends Fixture implements DependentFixtureInterface | |||
57 | 'mime' => 'text/html', | 60 | 'mime' => 'text/html', |
58 | 'title' => 'test title entry4', | 61 | 'title' => 'test title entry4', |
59 | 'content' => 'This is my content /o/', | 62 | 'content' => 'This is my content /o/', |
63 | 'created_at' => '2020-04-26 10:03:00', | ||
60 | 'language' => 'en', | 64 | 'language' => 'en', |
61 | 'tags' => ['foo-tag', 'bar-tag'], | 65 | 'tags' => ['foo-tag', 'bar-tag'], |
62 | ], | 66 | ], |
@@ -68,6 +72,7 @@ class EntryFixtures extends Fixture implements DependentFixtureInterface | |||
68 | 'mime' => 'text/html', | 72 | 'mime' => 'text/html', |
69 | 'title' => 'test title entry5', | 73 | 'title' => 'test title entry5', |
70 | 'content' => 'This is my content /o/', | 74 | 'content' => 'This is my content /o/', |
75 | 'created_at' => '2020-04-26 10:04:00', | ||
71 | 'language' => 'fr', | 76 | 'language' => 'fr', |
72 | 'starred' => true, | 77 | 'starred' => true, |
73 | 'preview' => 'http://0.0.0.0/image.jpg', | 78 | 'preview' => 'http://0.0.0.0/image.jpg', |
@@ -80,6 +85,7 @@ class EntryFixtures extends Fixture implements DependentFixtureInterface | |||
80 | 'mime' => 'text/html', | 85 | 'mime' => 'text/html', |
81 | 'title' => 'test title entry6', | 86 | 'title' => 'test title entry6', |
82 | 'content' => 'This is my content /o/', | 87 | 'content' => 'This is my content /o/', |
88 | 'created_at' => '2020-04-26 10:05:00', | ||
83 | 'language' => 'de', | 89 | 'language' => 'de', |
84 | 'archived' => true, | 90 | 'archived' => true, |
85 | 'tags' => ['bar-tag'], | 91 | 'tags' => ['bar-tag'], |
@@ -94,6 +100,7 @@ class EntryFixtures extends Fixture implements DependentFixtureInterface | |||
94 | $entry->setMimetype($item['mime']); | 100 | $entry->setMimetype($item['mime']); |
95 | $entry->setTitle($item['title']); | 101 | $entry->setTitle($item['title']); |
96 | $entry->setContent($item['content']); | 102 | $entry->setContent($item['content']); |
103 | $entry->setCreatedAt(new \DateTime($item['created_at'])); | ||
97 | $entry->setLanguage($item['language']); | 104 | $entry->setLanguage($item['language']); |
98 | 105 | ||
99 | if (isset($item['tags'])) { | 106 | if (isset($item['tags'])) { |