Skip to content

Commit

Permalink
add JsCallback exception test
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Mar 27, 2024
1 parent 02225de commit 5ce61ea
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 @@ -151,4 +151,13 @@ public static function provideSetNotClosureErrorCases(): iterable
yield [Popup::class];
yield [VirtualPage::class];
}

public function testJsCallbackGetUrlException(): void
{
$v = new JsCallback();

$this->expectException(Exception::class);
$this->expectExceptionMessage('Do not use getUrl on JsCallback, use getJsUrl()');
$v->getUrl();
}
}

0 comments on commit 5ce61ea

Please sign in to comment.