Skip to content

Commit 5dd17fe

Browse files
committed
added test for soundcloud in mobile
1 parent b837d24 commit 5dd17fe

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/SoundcloudTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,17 @@ public function testOne()
1515
$this->assertEquals($info->providerName, 'SoundCloud');
1616
$this->assertEquals($info->providerUrl, 'http://soundcloud.com');
1717
}
18+
19+
public function testMobile()
20+
{
21+
$info = Embed\Embed::create('https://m.soundcloud.com/zedsdead/zeds-dead-twin-shadow-lost-you-feat-dangelo-lacy');
22+
23+
$this->assertEquals($info->title, "Zeds Dead - Lost You (feat. Twin Shadow & D'Angelo Lacy)");
24+
$this->assertEquals($info->type, 'rich');
25+
$this->assertEquals($info->code, '<iframe width="100%" height="400" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?visual=true&url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F150745932&show_artwork=true"></iframe>');
26+
$this->assertEquals($info->authorName, 'Zeds Dead');
27+
$this->assertEquals($info->authorUrl, 'http://soundcloud.com/zedsdead');
28+
$this->assertEquals($info->providerName, 'SoundCloud');
29+
$this->assertEquals($info->providerUrl, 'http://soundcloud.com');
30+
}
1831
}

0 commit comments

Comments
 (0)