aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php
diff options
context:
space:
mode:
authorJeremy <jeremy.benoist@gmail.com>2015-03-28 21:43:49 +0100
committerJeremy <jeremy.benoist@gmail.com>2015-03-31 22:48:00 +0200
commit371ac69a6bd6325929e4efee7958682a6b1666f7 (patch)
tree781e6aa505f3c163e8385a662e1befc2f38885a3 /src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php
parent2385f891e5992e84501d4cd47565a7bf0af14331 (diff)
downloadwallabag-371ac69a6bd6325929e4efee7958682a6b1666f7.tar.gz
wallabag-371ac69a6bd6325929e4efee7958682a6b1666f7.tar.zst
wallabag-371ac69a6bd6325929e4efee7958682a6b1666f7.zip
Add tests
and fix few mistakes
Diffstat (limited to 'src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php')
-rw-r--r--src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php b/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php
index ce12ec5d..54d0d6b6 100644
--- a/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php
+++ b/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php
@@ -67,6 +67,26 @@ class LoadEntryData extends AbstractFixture implements OrderedFixtureInterface
67 67
68 $this->addReference('entry4', $entry4); 68 $this->addReference('entry4', $entry4);
69 69
70 $entry5 = new Entry($this->getReference('admin-user'));
71 $entry5->setUrl('http://0.0.0.0');
72 $entry5->setTitle('test title entry5');
73 $entry5->setContent('This is my content /o/');
74 $entry5->setStarred(true);
75
76 $manager->persist($entry5);
77
78 $this->addReference('entry5', $entry5);
79
80 $entry6 = new Entry($this->getReference('admin-user'));
81 $entry6->setUrl('http://0.0.0.0');
82 $entry6->setTitle('test title entry6');
83 $entry6->setContent('This is my content /o/');
84 $entry6->setArchived(true);
85
86 $manager->persist($entry6);
87
88 $this->addReference('entry6', $entry6);
89
70 $manager->flush(); 90 $manager->flush();
71 } 91 }
72 92