Skip to content

Commit 7173582

Browse files
committed
disabled tests for shutdown sites, added test for amCharts
1 parent 8c3e2f4 commit 7173582

File tree

6 files changed

+27
-0
lines changed

6 files changed

+27
-0
lines changed

phpunit.xml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<testsuites>
77
<testsuite name="All tests">
88
<directory>./tests/</directory>
9+
<exclude>./tests/disabled/</exclude>
910
</testsuite>
1011
</testsuites>
1112
</phpunit>

src/Providers/OEmbed/Amcharts.php

+8
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,12 @@ public static function getPatterns()
2121
{
2222
return ['https?://live.amcharts.com/*'];
2323
}
24+
25+
/**
26+
* {@inheritdoc}
27+
*/
28+
public static function embedInDomIsBroken()
29+
{
30+
return true;
31+
}
2432
}

tests/AmchartsTest.php

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
class AmchartsTest extends TestCaseBase
4+
{
5+
public function testOne()
6+
{
7+
$this->assertEmbed(
8+
'http://live.amcharts.com/czNjJ',
9+
[
10+
'title' => 'World Cup History',
11+
'width' => 600,
12+
'height' => 400,
13+
'type' => 'rich',
14+
'providerName' => 'amCharts',
15+
]
16+
);
17+
}
18+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)