From 5652ad7c7ee78f484e3e00dd3a63614ddff61915 Mon Sep 17 00:00:00 2001 From: nexxai Date: Wed, 18 Dec 2024 10:35:52 -0700 Subject: [PATCH] Updating StatementLexer test to follow Inertia convention --- tests/Feature/Lexers/StatementLexerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Feature/Lexers/StatementLexerTest.php b/tests/Feature/Lexers/StatementLexerTest.php index d28a0703..6178307c 100644 --- a/tests/Feature/Lexers/StatementLexerTest.php +++ b/tests/Feature/Lexers/StatementLexerTest.php @@ -78,7 +78,7 @@ public function it_returns_a_render_statement_with_data(): void public function it_returns_an_inertia_statement_with_data(): void { $tokens = [ - 'inertia' => 'post.index with:foo,bar,baz', + 'inertia' => 'Post/Index with:foo,bar,baz', ]; $actual = $this->subject->analyze($tokens); @@ -86,7 +86,7 @@ public function it_returns_an_inertia_statement_with_data(): void $this->assertCount(1, $actual); $this->assertInstanceOf(InertiaStatement::class, $actual[0]); - $this->assertEquals('post.index', $actual[0]->view()); + $this->assertEquals('Post/Index', $actual[0]->view()); $this->assertEquals(['foo', 'bar', 'baz'], $actual[0]->data()); }