Skip to content

Commit 9963fb4

Browse files
committed
test fixes
1 parent e6dfe37 commit 9963fb4

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

src/Adapters/Snipplr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getCode()
3030
$id = $this->getResponse()->getUrl()->getDirectoryPosition(1);
3131

3232
return <<<CODE
33-
<div id="snipplr_embed_{$id}" class="snipplr_embed"><a target_"blank" href="http://snipplr.com/view/{$id}">View this snippet</a> on Snipplr</div><script type="text/javascript" src="http://snipplr.com/js/embed.js"></script><script type="text/javascript" src="http://snipplr.com/json/{$id}"></script>
33+
<div id="snipplr_embed_{$id}" class="snipplr_embed"><a target_"blank" href="https://snipplr.com/view/{$id}">View this snippet</a> on Snipplr</div><script type="text/javascript" src="https://snipplr.com/js/embed.js"></script><script type="text/javascript" src="https://snipplr.com/json/{$id}"></script>
3434
CODE;
3535
}
3636
}

tests/LineTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
class LineTest extends AbstractTestCase
66
{
7+
/**
8+
* @group ignore
9+
*/
710
public function testOne()
811
{
912
$this->assertEmbed(

tests/SlidesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public function testOne()
99
$this->assertEmbed(
1010
'http://slides.com/alexwalker/responsive-svg/',
1111
[
12-
'title' => 'responsive-svg by Alex Walker',
12+
'title' => 'responsive-svg',
1313
'type' => 'rich',
1414
'code' => '<iframe src="http://slides.com/alexwalker/responsive-svg/embed" frameborder="0" allowTransparency="true" style="border:none;overflow:hidden;width:576px;height:420px;"></iframe>',
1515
'width' => 576,

tests/SnipplrTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ public function testOne()
1212
'title' => 'Better HTML 5 basic starter template - HTML - Snipplr Social Snippet Repository',
1313
'type' => 'rich',
1414
'providerName' => 'snipplr',
15-
'providerUrl' => 'http://snipplr.com',
16-
'code' => '<div id="snipplr_embed_72914" class="snipplr_embed"><a target_"blank" href="http://snipplr.com/view/72914">View this snippet</a> on Snipplr</div><script type="text/javascript" src="http://snipplr.com/js/embed.js"></script><script type="text/javascript" src="http://snipplr.com/json/72914"></script>',
15+
'providerUrl' => 'https://snipplr.com',
16+
'code' => '<div id="snipplr_embed_72914" class="snipplr_embed"><a target_"blank" href="https://snipplr.com/view/72914">View this snippet</a> on Snipplr</div><script type="text/javascript" src="https://snipplr.com/js/embed.js"></script><script type="text/javascript" src="https://snipplr.com/json/72914"></script>',
1717
]
1818
);
1919
}

tests/SpreakerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function testOne()
1111
[
1212
'title' => 'Angel Clark: Ice Cream Toco\'s - Angel Clark Show',
1313
'type' => 'rich',
14-
'code' => '<iframe src="https://widget.spreaker.com/player?episode_id=7657563&amp;theme=light&amp;playlist=show&amp;cover_image_url=https%3A%2F%2Fd3wo5wojvuv7l.cloudfront.net%2Fimages.spreaker.com%2Foriginal%2F07176451fd3625d19c5e5d88d9f1bfbb.jpg" width="640" height="480" frameborder="0"></iframe>',
14+
'code' => '<iframe src="https://widget.spreaker.com/player?episode_id=7657563&amp;theme=light&amp;playlist=false&amp;cover_image_url=https%3A%2F%2Fd3wo5wojvuv7l.cloudfront.net%2Fimages.spreaker.com%2Foriginal%2F07176451fd3625d19c5e5d88d9f1bfbb.jpg" width="640" height="480" frameborder="0"></iframe>',
1515
'providerName' => 'Spreaker',
1616
'providerUrl' => 'https://www.spreaker.com/',
1717
]

0 commit comments

Comments
 (0)