|
@@ -354,6 +354,32 @@ class ElementFactoryTest extends UnitTest
|
354
|
354
|
'data_normalized_url' => 'http://api.soundcloud.com/tracks/3154252'
|
355
|
355
|
),$datas);
|
356
|
356
|
|
|
357
|
+
|
|
358
|
+ // https://soundcloud.com/sinkane/okay-africa-mixtape-2011#play
|
|
359
|
+ $datas = $this->proceed_element_datas_api(
|
|
360
|
+ $bux,
|
|
361
|
+ 'https://soundcloud.com/sinkane/okay-africa-mixtape-2011#play'
|
|
362
|
+ );
|
|
363
|
+
|
|
364
|
+ $this->assertTrue(array_key_exists('data_thumb_url', $datas));
|
|
365
|
+
|
|
366
|
+ if (array_key_exists('data_thumb_url', $datas))
|
|
367
|
+ {
|
|
368
|
+ unset($datas['data_thumb_url']);
|
|
369
|
+ }
|
|
370
|
+
|
|
371
|
+ $this->assertEquals(array(
|
|
372
|
+ 'data_ref_id' => 29186819,
|
|
373
|
+ 'data_title' => 'Okay Africa Mixtape 2011',
|
|
374
|
+ //'data_thumb_url' => 'http://i1.sndcdn.com/artworks-000001536693-gb1n5v-large.jpg?51826bf',
|
|
375
|
+ 'data_type' => 'track',
|
|
376
|
+ 'data_artist' => 'Sinkane',
|
|
377
|
+ 'data_tags' => array(
|
|
378
|
+ 0 => null
|
|
379
|
+ ),
|
|
380
|
+ 'data_normalized_url' => 'http://api.soundcloud.com/tracks/29186819',
|
|
381
|
+ ),$datas);
|
|
382
|
+
|
357
|
383
|
// 'http://soundcloud.com/tracks/search?q%5Bfulltext%5D=EEK+A+MOUSSE&q%5Btype%5D=&q%5Bduration%5D='
|
358
|
384
|
|
359
|
385
|
$this->assertEquals(array(
|