Browse Source

Ajout de fixtures: elements dans groupe non suivis par les users test.

bastien 13 years ago
parent
commit
62164f4a8a

+ 15 - 2
src/Muzich/CoreBundle/DataFixtures/ORM/LoadElementData.php View File

@@ -140,17 +140,30 @@ class LoadElementData  extends AbstractFixture implements OrderedFixtureInterfac
140 140
     $this->createElement('infected_psycho', 'Infected Mushroom - Psycho', 
141 141
       'http://www.youtube.com/watch?v=dLWXSsYJoWY', 
142 142
       $this->getArrayOfTag(array('psytrance')),
143
-      $jamendo, $paul,
143
+      $youtube, $paul,
144 144
       $this->entity_manager->merge($this->getReference('group_fan_de_psytrance'))
145 145
     );
146 146
     
147 147
     $this->createElement('infected_muse', 'Infected mushroom - Muse Breaks', 
148 148
       'http://www.youtube.com/watch?v=g0Cbfm1PStA', 
149 149
       $this->getArrayOfTag(array('psytrance')),
150
-      $jamendo, $bob,
150
+      $youtube, $bob,
151 151
       $this->entity_manager->merge($this->getReference('group_fan_de_psytrance'))
152 152
     );
153 153
     
154
+    $this->createElement('joelle_1', 'Cents Pas - Joëlle', 
155
+      'http://www.youtube.com/watch?v=bIAFB4vRdGw', 
156
+      $this->getArrayOfTag(array('chanteuse')),
157
+      $youtube, $joelle
158
+    );
159
+    
160
+    $this->createElement('joelle_2', 'Cents Pas - Joëlle (bis)', 
161
+      'http://www.youtube.com/watch?v=bIAFB4vRdGw', 
162
+      $this->getArrayOfTag(array('chanteuse')),
163
+      $youtube, $joelle,
164
+      $this->entity_manager->merge($this->getReference('group_joelle'))
165
+    );
166
+    
154 167
 
155 168
     $this->entity_manager->flush();
156 169
   }

+ 8 - 0
src/Muzich/CoreBundle/DataFixtures/ORM/LoadGroupData.php View File

@@ -94,6 +94,10 @@ class LoadGroupData  extends AbstractFixture implements OrderedFixtureInterface,
94 94
         et recouvertes par beaucoup d'autres rythmes, souvent produits par le célèbre synthétiseur Roland TB-303.", 
95 95
     true, $this->entity_manager->merge($this->getReference('user_bob')));
96 96
     
97
+    $group_joelle = $this->createGroup('joelle', 'Le groupe de joelle', 
98
+      "Joelle, et ben elle aime bien la musique d'abord.", 
99
+    true, $this->entity_manager->merge($this->getReference('user_joelle')));
100
+    
97 101
     // Followers
98 102
     
99 103
     $this->theyFollowGroup(array(
@@ -116,6 +120,10 @@ class LoadGroupData  extends AbstractFixture implements OrderedFixtureInterface,
116 120
     $this->groupHasTags(array(
117 121
       $this->entity_manager->merge($this->getReference('tag_psytrance'))
118 122
     ), $group_fan_de_psytrance);
123
+    
124
+    $this->groupHasTags(array(
125
+      $this->entity_manager->merge($this->getReference('tag_chanteuse'))
126
+    ), $group_joelle);
119 127
 
120 128
     $this->entity_manager->flush();
121 129
   }

+ 1 - 1
src/Muzich/CoreBundle/DataFixtures/ORM/LoadTagData.php View File

@@ -45,7 +45,7 @@ class LoadTagData  extends AbstractFixture implements OrderedFixtureInterface, C
45 45
       'instrumental', 'italiano', 'jam', 'jazz',  'jazzrock',  'jazzy', 'jungle',
46 46
       'keyboard', 'latin',  'latino',  'live', 'lofi', 'lounge', 'meditation', 
47 47
       'melancolique', 'mellow',  'melodique', 'metal','metalcore','minimal', 
48
-      'minimalism', 'minimaltechno', 'mix', 'movie', 'medieval', 'psytrance'
48
+      'minimalism', 'minimaltechno', 'mix', 'movie', 'medieval', 'psytrance', 'chanteuse'
49 49
       
50 50
       ) as $tag_name)
51 51
     {