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,7 +56,7 @@ class JamendocomFactory extends BaseFactory
56 56
   public function getThumbnailUrl()
57 57
   {
58 58
     $url_object = $this->getCleanedUrl();
59
-    $url = null;
59
+    $get_url = null;
60 60
     
61 61
     // http://www.jamendo.com/fr/album/30661
62 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,7 +51,7 @@ class ElementSearcherTest extends UnitTest
51 51
     $array_names_es = array();
52 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 57
     $this->assertEquals($array_names, $array_names_es);
@@ -91,9 +91,9 @@ class ElementSearcherTest extends UnitTest
91 91
       array(
92 92
         'Ed Cox - La fanfare des teuffeurs (Hardcordian)',
93 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,9 +132,9 @@ class ElementSearcherTest extends UnitTest
132 132
       $es->getElements($r, $bux->getId()), 
133 133
       array(
134 134
         'CardioT3K - Juggernaut Trap',
135
-        'Acrotek Hardtek G01',
136 135
         'RE-FUCK (ReVeRB_FBC) mix.',
137 136
         'All Is Full Of Pain',
137
+        'Acrotek Hardtek G01',
138 138
         'Dj antoine'
139 139
       )
140 140
     );
@@ -164,11 +164,11 @@ class ElementSearcherTest extends UnitTest
164 164
     $this->checkElementSearchResults(
165 165
       $es->getElements($r, $bux->getId()), 
166 166
       array(
167
-        'DUDELDRUM',
168 167
         'Ed Cox - La fanfare des teuffeurs (Hardcordian)',
169 168
         'Babylon Pression - Des Tasers et des Pauvres',
169
+        'AZYD AZYLUM Live au Café Provisoire',
170 170
         'SOULFLY - Prophecy',
171
-        'CardioT3K - Juggernaut Trap'
171
+        'Dubstep Beatbox'
172 172
       )
173 173
     );
174 174
     
@@ -197,11 +197,11 @@ class ElementSearcherTest extends UnitTest
197 197
     $this->checkElementSearchResults(
198 198
       $es->getElements($r, $bux->getId()), 
199 199
       array(
200
+        'Infected mushroom - Muse Breaks',
201
+        'Infected Mushroom - Psycho',
200 202
         'DUDELDRUM',
201 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,8 +252,8 @@ class ElementSearcherTest extends UnitTest
252 252
     $this->checkElementSearchResults(
253 253
       $es->getElements($r, $bux->getId()), 
254 254
       array(
255
-        'CardioT3K - Juggernaut Trap',
256 255
         'Infected Mushroom - Psycho',
256
+        'CardioT3K - Juggernaut Trap',
257 257
         'RE-FUCK (ReVeRB_FBC) mix.',
258 258
         'All Is Full Of Pain'
259 259
       )
@@ -289,8 +289,8 @@ class ElementSearcherTest extends UnitTest
289 289
     $this->checkElementSearchResults(
290 290
       $es->getElements($r, $bux->getId()), 
291 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,8 +322,8 @@ class ElementSearcherTest extends UnitTest
322 322
     $this->checkElementSearchResults(
323 323
       $es->getElements($r, $bux->getId()), 
324 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