aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-02-11 06:45:14 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-02-11 06:45:14 +0100
commitfa8d56393413fc599a972699ad4780e92f1a2010 (patch)
tree5ed25ecf43e6af0a8da5a13704fd51aae42a21c0 /src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php
parentf59f45d74093e92656f9717c8c5f4e37c56d2173 (diff)
parentda93261a7d729084c4913e8dcc5052a781426ef7 (diff)
downloadwallabag-fa8d56393413fc599a972699ad4780e92f1a2010.tar.gz
wallabag-fa8d56393413fc599a972699ad4780e92f1a2010.tar.zst
wallabag-fa8d56393413fc599a972699ad4780e92f1a2010.zip
Merge pull request #1072 from wallabag/v2-entry-test
Add more tests to Entry controller + security
Diffstat (limited to 'src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php')
-rw-r--r--src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php23
1 files changed, 21 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php b/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php
index fccd06be..520b44b8 100644
--- a/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php
+++ b/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadEntryData.php
@@ -16,13 +16,32 @@ class LoadEntryData extends AbstractFixture implements OrderedFixtureInterface
16 { 16 {
17 $entry1 = new Entry($this->getReference('admin-user')); 17 $entry1 = new Entry($this->getReference('admin-user'));
18 $entry1->setUrl('http://0.0.0.0'); 18 $entry1->setUrl('http://0.0.0.0');
19 $entry1->setTitle('test title'); 19 $entry1->setTitle('test title entry1');
20 $entry1->setContent('This is my content /o/'); 20 $entry1->setContent('This is my content /o/');
21 21
22 $manager->persist($entry1); 22 $manager->persist($entry1);
23 $manager->flush();
24 23
25 $this->addReference('entry1', $entry1); 24 $this->addReference('entry1', $entry1);
25
26 $entry2 = new Entry($this->getReference('admin-user'));
27 $entry2->setUrl('http://0.0.0.0');
28 $entry2->setTitle('test title entry2');
29 $entry2->setContent('This is my content /o/');
30
31 $manager->persist($entry2);
32
33 $this->addReference('entry2', $entry2);
34
35 $entry3 = new Entry($this->getReference('bob-user'));
36 $entry3->setUrl('http://0.0.0.0');
37 $entry3->setTitle('test title entry3');
38 $entry3->setContent('This is my content /o/');
39
40 $manager->persist($entry3);
41
42 $this->addReference('entry3', $entry3);
43
44 $manager->flush();
26 } 45 }
27 46
28 /** 47 /**