Skip to content

Commit

Permalink
added absoluteUrl test
Browse files Browse the repository at this point in the history
  • Loading branch information
Gappa committed Sep 4, 2018
1 parent 5759bbd commit f1df18c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/Nette/ExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,26 @@ public function testDeferOff(): void
}


public function testAbsoluteUrlOn(): void
{
$this->prepareContainer([
__DIR__ . '/../fixtures/extension.neon',
__DIR__ . '/../fixtures/extensionAbsoluteUrlTrue.neon',
]);
$this->assertTrue($this->container->getService('webloader.jsDefaultCompiler')->isAbsoluteUrl());
}


public function testAbsoluteUrlOff(): void
{
$this->prepareContainer([
__DIR__ . '/../fixtures/extension.neon',
__DIR__ . '/../fixtures/extensionAbsoluteUrlFalse.neon',
]);
$this->assertFalse($this->container->getService('webloader.jsDefaultCompiler')->isAbsoluteUrl());
}


public function testNonceSet(): void
{
$this->prepareContainer([
Expand Down

0 comments on commit f1df18c

Please sign in to comment.