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

Commit 71c4bfa

Browse files
committed
add test for empty type
1 parent adb2756 commit 71c4bfa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/Helper/HeadScriptTest.php

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

472472
$this->assertContains('crossorigin="', $test);
473473
}
474+
475+
public function testOmitsTypeAttributeIfEmptyValue()
476+
{
477+
$this->helper->__invoke()->appendScript('// some script' . PHP_EOL, '');
478+
$test = $this->helper->__invoke()->toString();
479+
$this->assertNotContains('type', $test);
480+
}
474481
}

0 commit comments

Comments
 (0)