aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2015-10-31 09:26:00 +0100
committerNicolas LÅ“uillet <nicolas.loeuillet@smile.fr>2015-11-09 16:32:48 +0100
commitfba3f536a5557b9094393728d360bf78260ab4da (patch)
treeccbb48c5ed8c6724d5f75e1482e6feeb538f1ac9 /src/Wallabag
parentcceca9ea1d93ccf1420c2506330a16dc07f6433c (diff)
downloadwallabag-fba3f536a5557b9094393728d360bf78260ab4da.tar.gz
wallabag-fba3f536a5557b9094393728d360bf78260ab4da.tar.zst
wallabag-fba3f536a5557b9094393728d360bf78260ab4da.zip
Fix tests
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php6
-rw-r--r--src/Wallabag/CoreBundle/Tests/Controller/ExportControllerTest.php1
2 files changed, 6 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php b/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php
index 7e64c5e1..176c529e 100644
--- a/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php
+++ b/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php
@@ -19,6 +19,7 @@ class LoadEntryData extends AbstractFixture implements OrderedFixtureInterface
19 $entry1->setUrl('http://0.0.0.0'); 19 $entry1->setUrl('http://0.0.0.0');
20 $entry1->setReadingTime(11); 20 $entry1->setReadingTime(11);
21 $entry1->setDomainName('domain.io'); 21 $entry1->setDomainName('domain.io');
22 $entry1->setMimetype('text/html');
22 $entry1->setTitle('test title entry1'); 23 $entry1->setTitle('test title entry1');
23 $entry1->setContent('This is my content /o/'); 24 $entry1->setContent('This is my content /o/');
24 $entry1->setLanguage('en'); 25 $entry1->setLanguage('en');
@@ -31,6 +32,7 @@ class LoadEntryData extends AbstractFixture implements OrderedFixtureInterface
31 $entry2->setUrl('http://0.0.0.0'); 32 $entry2->setUrl('http://0.0.0.0');
32 $entry2->setReadingTime(1); 33 $entry2->setReadingTime(1);
33 $entry2->setDomainName('domain.io'); 34 $entry2->setDomainName('domain.io');
35 $entry2->setMimetype('text/html');
34 $entry2->setTitle('test title entry2'); 36 $entry2->setTitle('test title entry2');
35 $entry2->setContent('This is my content /o/'); 37 $entry2->setContent('This is my content /o/');
36 $entry2->setLanguage('fr'); 38 $entry2->setLanguage('fr');
@@ -43,6 +45,7 @@ class LoadEntryData extends AbstractFixture implements OrderedFixtureInterface
43 $entry3->setUrl('http://0.0.0.0'); 45 $entry3->setUrl('http://0.0.0.0');
44 $entry3->setReadingTime(1); 46 $entry3->setReadingTime(1);
45 $entry3->setDomainName('domain.io'); 47 $entry3->setDomainName('domain.io');
48 $entry3->setMimetype('text/html');
46 $entry3->setTitle('test title entry3'); 49 $entry3->setTitle('test title entry3');
47 $entry3->setContent('This is my content /o/'); 50 $entry3->setContent('This is my content /o/');
48 $entry3->setLanguage('en'); 51 $entry3->setLanguage('en');
@@ -63,6 +66,7 @@ class LoadEntryData extends AbstractFixture implements OrderedFixtureInterface
63 $entry4->setUrl('http://0.0.0.0'); 66 $entry4->setUrl('http://0.0.0.0');
64 $entry4->setReadingTime(12); 67 $entry4->setReadingTime(12);
65 $entry4->setDomainName('domain.io'); 68 $entry4->setDomainName('domain.io');
69 $entry4->setMimetype('text/html');
66 $entry4->setTitle('test title entry4'); 70 $entry4->setTitle('test title entry4');
67 $entry4->setContent('This is my content /o/'); 71 $entry4->setContent('This is my content /o/');
68 $entry4->setLanguage('en'); 72 $entry4->setLanguage('en');
@@ -83,6 +87,7 @@ class LoadEntryData extends AbstractFixture implements OrderedFixtureInterface
83 $entry5->setUrl('http://0.0.0.0'); 87 $entry5->setUrl('http://0.0.0.0');
84 $entry5->setReadingTime(12); 88 $entry5->setReadingTime(12);
85 $entry5->setDomainName('domain.io'); 89 $entry5->setDomainName('domain.io');
90 $entry5->setMimetype('text/html');
86 $entry5->setTitle('test title entry5'); 91 $entry5->setTitle('test title entry5');
87 $entry5->setContent('This is my content /o/'); 92 $entry5->setContent('This is my content /o/');
88 $entry5->setStarred(true); 93 $entry5->setStarred(true);
@@ -97,6 +102,7 @@ class LoadEntryData extends AbstractFixture implements OrderedFixtureInterface
97 $entry6->setUrl('http://0.0.0.0'); 102 $entry6->setUrl('http://0.0.0.0');
98 $entry6->setReadingTime(12); 103 $entry6->setReadingTime(12);
99 $entry6->setDomainName('domain.io'); 104 $entry6->setDomainName('domain.io');
105 $entry6->setMimetype('text/html');
100 $entry6->setTitle('test title entry6'); 106 $entry6->setTitle('test title entry6');
101 $entry6->setContent('This is my content /o/'); 107 $entry6->setContent('This is my content /o/');
102 $entry6->setArchived(true); 108 $entry6->setArchived(true);
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/ExportControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/ExportControllerTest.php
index 3d3b97a9..739b2dec 100644
--- a/src/Wallabag/CoreBundle/Tests/Controller/ExportControllerTest.php
+++ b/src/Wallabag/CoreBundle/Tests/Controller/ExportControllerTest.php
@@ -192,7 +192,6 @@ class ExportControllerTest extends WallabagCoreTestCase
192 $this->assertArrayHasKey('language', $content[0]); 192 $this->assertArrayHasKey('language', $content[0]);
193 $this->assertArrayHasKey('reading_time', $content[0]); 193 $this->assertArrayHasKey('reading_time', $content[0]);
194 $this->assertArrayHasKey('domain_name', $content[0]); 194 $this->assertArrayHasKey('domain_name', $content[0]);
195 $this->assertArrayHasKey('preview_picture', $content[0]);
196 $this->assertArrayHasKey('tags', $content[0]); 195 $this->assertArrayHasKey('tags', $content[0]);
197 } 196 }
198 197