Skip to content

Commit a5d00b5

Browse files
committed
updated test cases
1 parent 010fba8 commit a5d00b5

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

tests/FlickrTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ public function testSets()
55
{
66
$info = Embed\Embed::create('https://www.flickr.com/photos/desescribir/sets/72157650686499888');
77

8-
$this->assertEquals($info->imageWidth, 640);
9-
$this->assertEquals($info->imageHeight, 425);
8+
$this->assertEquals($info->imageWidth, 1024);
9+
$this->assertEquals($info->imageHeight, 680);
1010
$this->assertEquals($info->code, '<iframe src="https://www.flickr.com/photos/desescribir/sets/72157650686499888/player" frameborder="0" allowTransparency="true" style="border:none;overflow:hidden;width:640px;height:425px;"></iframe>');
1111
$this->assertEquals($info->type, 'rich');
1212
}
@@ -15,8 +15,8 @@ public function testProfile()
1515
{
1616
$info = Embed\Embed::create('https://www.flickr.com/photos/desescribir');
1717

18-
$this->assertEquals($info->imageWidth, 640);
19-
$this->assertEquals($info->imageHeight, 425);
18+
$this->assertEquals($info->imageWidth, 2048);
19+
$this->assertEquals($info->imageHeight, 1454);
2020
$this->assertEquals($info->code, '<iframe src="https://www.flickr.com/photos/desescribir/player" frameborder="0" allowTransparency="true" style="border:none;overflow:hidden;width:640px;height:425px;"></iframe>');
2121
$this->assertEquals($info->type, 'rich');
2222
}

tests/ImgurTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public function testOne()
55
{
66
$info = Embed\Embed::create('http://i.imgur.com/X6rkCc5.jpg');
77

8-
$this->assertEquals($info->title, 'Picture of a Mountain Gorilla right before he punched the photographer');
8+
$this->assertEquals($info->title, 'http://i.imgur.com/X6rkCc5.jpg');
99
$this->assertEquals($info->imageWidth, 2000);
1010
$this->assertEquals($info->imageHeight, 1332);
1111
$this->assertEquals($info->type, 'photo');

tests/PhotoBucketTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public function testOne()
66
$info = Embed\Embed::create('http://media.photobucket.com/user/Ignwar/media/Album%20Deserts/MoonriseMonumentValleyUtah.jpg.html?filters[term]=sunsets&filters[primary]=images');
77

88
$this->assertEquals($info->title, 'Deserts');
9-
$this->assertEquals($info->description, 'This photo was uploaded by Ignwar.');
9+
$this->assertEquals($info->description, "I P uploaded this image to 'Album Deserts'. See the album on Photobucket.");
1010
$this->assertEquals($info->imageWidth, 1600);
1111
$this->assertEquals($info->imageHeight, 1200);
1212
$this->assertEquals($info->type, 'photo');

tests/SoundcloudTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public function testOne()
77

88
$this->assertEquals($info->title, "Zeds Dead - Lost You (feat. Twin Shadow & D'Angelo Lacy)");
99
$this->assertEquals($info->type, 'rich');
10-
$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>');
10+
$this->assertEquals($info->code, '<iframe width="100%" height="400" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?visual=true&url=https%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F150745932&show_artwork=true"></iframe>');
1111
$this->assertEquals($info->authorName, 'Zeds Dead');
1212
$this->assertEquals($info->authorUrl, 'http://soundcloud.com/zedsdead');
1313
$this->assertEquals($info->providerName, 'SoundCloud');
@@ -21,7 +21,7 @@ public function testTwo()
2121
$this->assertEquals($info->title, "Bruce Neil");
2222
$this->assertEquals($info->description, "Bruce Neil from Wokingham is a singer/songwriter with a folk inspired sound, producing songs with heartfelt depth and lyrics that captivate the listener, taking them on an insightful and thought-provoking journey. As a winner of BBC Introducing, resulting in air play nationally, he has recently achieved widespread public attention following the video release of his percussive folk rendition of Guns N’ Roses track Paradise City. Not only did this go viral on social media, it was endorsed by the band themselves and has achieved recognition and air play from several US radio stations. He takes his musical inspiration and guitar-playing style from the likes of Passenger and Mick Flannery.");
2323
$this->assertEquals($info->type, 'rich');
24-
$this->assertEquals($info->code, '<iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?visual=true&url=http%3A%2F%2Fapi.soundcloud.com%2Fusers%2F6538603&show_artwork=true"></iframe>');
24+
$this->assertEquals($info->code, '<iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?visual=true&url=https%3A%2F%2Fapi.soundcloud.com%2Fusers%2F6538603&show_artwork=true"></iframe>');
2525
$this->assertEquals($info->providerName, 'SoundCloud');
2626
$this->assertEquals($info->providerUrl, 'https://soundcloud.com');
2727
}
@@ -33,7 +33,7 @@ public function testThree()
3333
$this->assertEquals($info->title, "Flaws EP");
3434
$this->assertEquals($info->description, "19 year old singer/songwriter from Reading.");
3535
$this->assertEquals($info->type, 'rich');
36-
$this->assertEquals($info->code, '<iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?visual=true&url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F46025307&show_artwork=true"></iframe>');
36+
$this->assertEquals($info->code, '<iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?visual=true&url=https%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F46025307&show_artwork=true"></iframe>');
3737
$this->assertEquals($info->providerName, 'SoundCloud');
3838
$this->assertEquals($info->providerUrl, 'https://soundcloud.com');
3939
}
@@ -45,7 +45,7 @@ public function testFour()
4545
$this->assertEquals($info->title, "LOWE CT Cape Times - World Cup");
4646
$this->assertEquals($info->description, "If you did it. Show it on ididthat.net");
4747
$this->assertEquals($info->type, 'rich');
48-
$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%2F191904624&show_artwork=true"></iframe>');
48+
$this->assertEquals($info->code, '<iframe width="100%" height="400" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?visual=true&url=https%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F191904624&show_artwork=true"></iframe>');
4949
$this->assertEquals($info->providerName, 'SoundCloud');
5050
$this->assertEquals($info->providerUrl, 'https://soundcloud.com');
5151
}
@@ -56,7 +56,7 @@ public function testMobile()
5656

5757
$this->assertEquals($info->title, "Zeds Dead - Lost You (feat. Twin Shadow & D'Angelo Lacy)");
5858
$this->assertEquals($info->type, 'rich');
59-
$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>');
59+
$this->assertEquals($info->code, '<iframe width="100%" height="400" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?visual=true&url=https%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F150745932&show_artwork=true"></iframe>');
6060
$this->assertEquals($info->authorName, 'Zeds Dead');
6161
$this->assertEquals($info->authorUrl, 'http://soundcloud.com/zedsdead');
6262
$this->assertEquals($info->providerName, 'SoundCloud');

tests/SpotifyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public function testOne()
77

88
$this->assertEquals($info->title, 'Faded');
99
$this->assertEquals($info->type, 'rich');
10-
$this->assertEquals($info->code, '<iframe src="https://embed.spotify.com/?uri=spotify:album:68XUEsgZs7cJVtYlvCJSGz" frameborder="0" allowTransparency="true" style="border:none;overflow:hidden;width:300px;height:380px;"></iframe>');
10+
$this->assertEquals($info->code, '<iframe src="https://embed.spotify.com/?uri=spotify:track:7nDQMtLxu94xtlTR8bEqjU" frameborder="0" allowTransparency="true" style="border:none;overflow:hidden;width:300px;height:380px;"></iframe>');
1111
$this->assertEquals($info->providerName, 'Spotify');
1212
$this->assertEquals($info->providerUrl, 'https://spotify.com');
1313
}

0 commit comments

Comments
 (0)