Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit e60144d

Browse files
added unit test
1 parent f017567 commit e60144d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/Helper/HeadScriptTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,4 +471,13 @@ public function testSupportsCrossOriginAttribute()
471471

472472
$this->assertContains('crossorigin="', $test);
473473
}
474+
475+
public function testSupportsAsyncAttribute()
476+
{
477+
$this->helper->__invoke()->appendScript(
478+
'// some script' . PHP_EOL, 'text/javascript', ['async' => true]
479+
);
480+
$test = $this->helper->__invoke()->toString();
481+
$this->assertContains('async="', $test);
482+
}
474483
}

0 commit comments

Comments
 (0)