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
     $this->createElement('infected_psycho', 'Infected Mushroom - Psycho', 
140
     $this->createElement('infected_psycho', 'Infected Mushroom - Psycho', 
141
       'http://www.youtube.com/watch?v=dLWXSsYJoWY', 
141
       'http://www.youtube.com/watch?v=dLWXSsYJoWY', 
142
       $this->getArrayOfTag(array('psytrance')),
142
       $this->getArrayOfTag(array('psytrance')),
143
-      $jamendo, $paul,
143
+      $youtube, $paul,
144
       $this->entity_manager->merge($this->getReference('group_fan_de_psytrance'))
144
       $this->entity_manager->merge($this->getReference('group_fan_de_psytrance'))
145
     );
145
     );
146
     
146
     
147
     $this->createElement('infected_muse', 'Infected mushroom - Muse Breaks', 
147
     $this->createElement('infected_muse', 'Infected mushroom - Muse Breaks', 
148
       'http://www.youtube.com/watch?v=g0Cbfm1PStA', 
148
       'http://www.youtube.com/watch?v=g0Cbfm1PStA', 
149
       $this->getArrayOfTag(array('psytrance')),
149
       $this->getArrayOfTag(array('psytrance')),
150
-      $jamendo, $bob,
150
+      $youtube, $bob,
151
       $this->entity_manager->merge($this->getReference('group_fan_de_psytrance'))
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
     $this->entity_manager->flush();
168
     $this->entity_manager->flush();
156
   }
169
   }

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

94
         et recouvertes par beaucoup d'autres rythmes, souvent produits par le célèbre synthétiseur Roland TB-303.", 
94
         et recouvertes par beaucoup d'autres rythmes, souvent produits par le célèbre synthétiseur Roland TB-303.", 
95
     true, $this->entity_manager->merge($this->getReference('user_bob')));
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
     // Followers
101
     // Followers
98
     
102
     
99
     $this->theyFollowGroup(array(
103
     $this->theyFollowGroup(array(
116
     $this->groupHasTags(array(
120
     $this->groupHasTags(array(
117
       $this->entity_manager->merge($this->getReference('tag_psytrance'))
121
       $this->entity_manager->merge($this->getReference('tag_psytrance'))
118
     ), $group_fan_de_psytrance);
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
     $this->entity_manager->flush();
128
     $this->entity_manager->flush();
121
   }
129
   }

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

45
       'instrumental', 'italiano', 'jam', 'jazz',  'jazzrock',  'jazzy', 'jungle',
45
       'instrumental', 'italiano', 'jam', 'jazz',  'jazzrock',  'jazzy', 'jungle',
46
       'keyboard', 'latin',  'latino',  'live', 'lofi', 'lounge', 'meditation', 
46
       'keyboard', 'latin',  'latino',  'live', 'lofi', 'lounge', 'meditation', 
47
       'melancolique', 'mellow',  'melodique', 'metal','metalcore','minimal', 
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
       ) as $tag_name)
50
       ) as $tag_name)
51
     {
51
     {