Browse Source

test fix (changement d'ordre des elements en fixture).

bastien 13 years ago
parent
commit
dbcb9dc909

+ 1 - 1
src/Muzich/CoreBundle/ElementFactory/Site/JamendocomFactory.php View File

56
   public function getThumbnailUrl()
56
   public function getThumbnailUrl()
57
   {
57
   {
58
     $url_object = $this->getCleanedUrl();
58
     $url_object = $this->getCleanedUrl();
59
-    $url = null;
59
+    $get_url = null;
60
     
60
     
61
     // http://www.jamendo.com/fr/album/30661
61
     // http://www.jamendo.com/fr/album/30661
62
     if (preg_match("#^\/[a-zA-Z0-9_-]+\/album\/([0-9]+)#", $url_object, $chaines))
62
     if (preg_match("#^\/[a-zA-Z0-9_-]+\/album\/([0-9]+)#", $url_object, $chaines))

+ 15 - 15
src/Muzich/CoreBundle/Tests/Searcher/ElementSearcherTest.php View File

51
     $array_names_es = array();
51
     $array_names_es = array();
52
     foreach ($es_results as $element)
52
     foreach ($es_results as $element)
53
     {
53
     {
54
-      $array_names_es[] = $element->getName();
54
+      $array_names_es[] = (string)$element->getName();
55
     }
55
     }
56
     
56
     
57
     $this->assertEquals($array_names, $array_names_es);
57
     $this->assertEquals($array_names, $array_names_es);
91
       array(
91
       array(
92
         'Ed Cox - La fanfare des teuffeurs (Hardcordian)',
92
         'Ed Cox - La fanfare des teuffeurs (Hardcordian)',
93
         'CardioT3K - Juggernaut Trap',
93
         'CardioT3K - Juggernaut Trap',
94
-        'Acrotek Hardtek G01',
95
-        'KoinkOin - H5N1',
96
-        'Antropod - Polakatek'
94
+        'RE-FUCK (ReVeRB_FBC) mix.',
95
+        'All Is Full Of Pain',
96
+        'Acrotek Hardtek G01'
97
       )
97
       )
98
     );
98
     );
99
     
99
     
132
       $es->getElements($r, $bux->getId()), 
132
       $es->getElements($r, $bux->getId()), 
133
       array(
133
       array(
134
         'CardioT3K - Juggernaut Trap',
134
         'CardioT3K - Juggernaut Trap',
135
-        'Acrotek Hardtek G01',
136
         'RE-FUCK (ReVeRB_FBC) mix.',
135
         'RE-FUCK (ReVeRB_FBC) mix.',
137
         'All Is Full Of Pain',
136
         'All Is Full Of Pain',
137
+        'Acrotek Hardtek G01',
138
         'Dj antoine'
138
         'Dj antoine'
139
       )
139
       )
140
     );
140
     );
164
     $this->checkElementSearchResults(
164
     $this->checkElementSearchResults(
165
       $es->getElements($r, $bux->getId()), 
165
       $es->getElements($r, $bux->getId()), 
166
       array(
166
       array(
167
-        'DUDELDRUM',
168
         'Ed Cox - La fanfare des teuffeurs (Hardcordian)',
167
         'Ed Cox - La fanfare des teuffeurs (Hardcordian)',
169
         'Babylon Pression - Des Tasers et des Pauvres',
168
         'Babylon Pression - Des Tasers et des Pauvres',
169
+        'AZYD AZYLUM Live au Café Provisoire',
170
         'SOULFLY - Prophecy',
170
         'SOULFLY - Prophecy',
171
-        'CardioT3K - Juggernaut Trap'
171
+        'Dubstep Beatbox'
172
       )
172
       )
173
     );
173
     );
174
     
174
     
197
     $this->checkElementSearchResults(
197
     $this->checkElementSearchResults(
198
       $es->getElements($r, $bux->getId()), 
198
       $es->getElements($r, $bux->getId()), 
199
       array(
199
       array(
200
+        'Infected mushroom - Muse Breaks',
201
+        'Infected Mushroom - Psycho',
200
         'DUDELDRUM',
202
         'DUDELDRUM',
201
         'CardioT3K - Juggernaut Trap',
203
         'CardioT3K - Juggernaut Trap',
202
-        'Acrotek Hardtek G01',
203
-        'Infected Mushroom - Psycho',
204
-        'Infected mushroom - Muse Breaks'
204
+        'RE-FUCK (ReVeRB_FBC) mix.'
205
       )
205
       )
206
     );
206
     );
207
     
207
     
252
     $this->checkElementSearchResults(
252
     $this->checkElementSearchResults(
253
       $es->getElements($r, $bux->getId()), 
253
       $es->getElements($r, $bux->getId()), 
254
       array(
254
       array(
255
-        'CardioT3K - Juggernaut Trap',
256
         'Infected Mushroom - Psycho',
255
         'Infected Mushroom - Psycho',
256
+        'CardioT3K - Juggernaut Trap',
257
         'RE-FUCK (ReVeRB_FBC) mix.',
257
         'RE-FUCK (ReVeRB_FBC) mix.',
258
         'All Is Full Of Pain'
258
         'All Is Full Of Pain'
259
       )
259
       )
289
     $this->checkElementSearchResults(
289
     $this->checkElementSearchResults(
290
       $es->getElements($r, $bux->getId()), 
290
       $es->getElements($r, $bux->getId()), 
291
       array(
291
       array(
292
-        'Heretik System Popof - Resistance',
293
-        'All Is Full Of Pain'
292
+        'All Is Full Of Pain',
293
+        'Heretik System Popof - Resistance'
294
       )
294
       )
295
     );
295
     );
296
     
296
     
322
     $this->checkElementSearchResults(
322
     $this->checkElementSearchResults(
323
       $es->getElements($r, $bux->getId()), 
323
       $es->getElements($r, $bux->getId()), 
324
       array(
324
       array(
325
-        'Infected Mushroom - Psycho',
326
-        'Infected mushroom - Muse Breaks'
325
+        'Infected mushroom - Muse Breaks',
326
+        'Infected Mushroom - Psycho'
327
       )
327
       )
328
     );
328
     );
329
     
329