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

Commit 8d5ba12

Browse files
committed
fix set view in help to null
1 parent 9a1b69d commit 8d5ba12

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/Helper/HeadScriptTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,15 +446,14 @@ public function testNoEscapeWithAllowArbitraryAttributesDoesNotIncludeNoEscapeSc
446446
public function testNoEscapeDefaultsToFalse()
447447
{
448448
// it only defaults to false if there is no view, respectively no doctype helper available
449-
$oldview = $this->view;
450-
$this->view = null;
449+
$this->helper->setView(null);
451450
$this->helper->__invoke()->appendScript('// some script' . PHP_EOL, 'text/javascript', []);
452451
$test = $this->helper->__invoke()->toString();
453452

454453
$this->assertContains('//<!--', $test);
455454
$this->assertContains('//-->', $test);
456455

457-
$this->view = $oldview;
456+
$this->helper->setView($this->view);
458457
}
459458

460459
public function testNoEscapeTrue()

0 commit comments

Comments
 (0)