We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c385d19 commit 9115753Copy full SHA for 9115753
tests/HttpPushTest.php
@@ -39,6 +39,19 @@ public function test_add_resources_to_queue()
39
$this->assertEquals($expected, $this->instance->resources);
40
}
41
42
+ public function test_add_external_resources_to_queue()
43
+ {
44
+ $this->instance->queueResource('https://example.com/style.css', 'style');
45
+
46
+ $expected = [
47
+ [
48
+ 'path' => 'https://example.com/style.css',
49
+ 'type' => 'style',
50
+ ],
51
+ ];
52
+ $this->assertEquals($expected, $this->instance->resources);
53
+ }
54
55
public function test_resource_generates_link_string()
56
{
57
$this->instance->queueResource('/assets/app.js.min', 'script');
0 commit comments