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

Commit 079c8ae

Browse files
committed
added view
1 parent e89de2b commit 079c8ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/Helper/HeadScriptTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ class HeadScriptTest extends \PHPUnit_Framework_TestCase
4040
public function setUp()
4141
{
4242
$this->basePath = __DIR__ . '/_files/modules';
43+
$this->view = new View();
4344
$this->helper = new Helper\HeadScript();
45+
$this->helper->setView($this->view);
4446
}
4547

4648
/**
@@ -474,6 +476,7 @@ public function testSupportsCrossOriginAttribute()
474476

475477
public function testOmitsTypeAttributeIfEmptyValue()
476478
{
479+
$this->view->plugin('doctype')->setDoctype('html5');
477480
$this->helper->__invoke()->appendScript('// some script' . PHP_EOL, '');
478481
$test = $this->helper->__invoke()->toString();
479482
$this->assertNotContains('type', $test);

0 commit comments

Comments
 (0)