Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Jun 25, 2024
1 parent 232f478 commit b4534fd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/ViewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ public function tearDown(): void
FileHelper::removeDirectory($this->tempDirectory);
}

public function testAbsolutePath(): void
{
$view = new View();

$result = $view->render(__DIR__ . '/public/view/parameters.php', ['parameter' => 42]);

$this->assertSame('42', $result);
}

/**
* @link https://github.com/yiisoft/yii2/issues/13058
*/
Expand Down

0 comments on commit b4534fd

Please sign in to comment.