|
@@ -497,6 +497,28 @@ class ElementFactoryTest extends UnitTest
|
497
|
497
|
$bux,
|
498
|
498
|
'http://soundcloud.com/groups/search?q%5Bfulltext%5D=EEK+A+MOUSSE&q%5Btype%5D=&q%5Bduration%5D='
|
499
|
499
|
));
|
|
500
|
+
|
|
501
|
+ $datas = $this->proceed_element_datas_api(
|
|
502
|
+ $bux,
|
|
503
|
+ 'http://snd.sc/11CyOpN'
|
|
504
|
+ );
|
|
505
|
+ $this->assertTrue(array_key_exists('data_thumb_url', $datas));
|
|
506
|
+ if (array_key_exists('data_thumb_url', $datas))
|
|
507
|
+ unset($datas['data_thumb_url']);
|
|
508
|
+
|
|
509
|
+ $this->assertEquals(array(
|
|
510
|
+ 'data_ref_id' => 90126814,
|
|
511
|
+ 'data_title' => 'The Test - WAKANTANKA #01 (Back to the originz)',
|
|
512
|
+ 'data_type' => 'track',
|
|
513
|
+ 'data_artist' => 'mgl32',
|
|
514
|
+ 'data_tags' => array(
|
|
515
|
+ 0 => 'Tribe',
|
|
516
|
+ 1 => 'Acid Tekno'
|
|
517
|
+ ),
|
|
518
|
+ 'data_normalized_url' => 'http://api.soundcloud.com/tracks/90126814',
|
|
519
|
+ 'data_download' => true,
|
|
520
|
+ 'data_download_url' => 'http://api.soundcloud.com/tracks/90126814/download'
|
|
521
|
+ ),$datas);
|
500
|
522
|
|
501
|
523
|
/*
|
502
|
524
|
* - jamendo.com
|