diff --git a/tests/ViewTest.php b/tests/ViewTest.php index 8122c8275b..cd5c4c54e3 100644 --- a/tests/ViewTest.php +++ b/tests/ViewTest.php @@ -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(); + } }