From be322f7ef2549588d1e587fb3c928403fc999b0d Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Sun, 8 Oct 2023 20:54:01 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- src/Concerns/UsesGeneratorOverrides.php | 1 - tests/Concerns/UsesGeneratorOverridesTest.php | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Concerns/UsesGeneratorOverrides.php b/src/Concerns/UsesGeneratorOverrides.php index 2de7f9a..cf7a22c 100644 --- a/src/Concerns/UsesGeneratorOverrides.php +++ b/src/Concerns/UsesGeneratorOverrides.php @@ -105,7 +105,6 @@ protected function possibleEventsUsingCanvas(): array */ abstract protected function rootNamespace(); - /** * Resolve the generator preset. */ diff --git a/tests/Concerns/UsesGeneratorOverridesTest.php b/tests/Concerns/UsesGeneratorOverridesTest.php index 7cc807b..97bb5f2 100644 --- a/tests/Concerns/UsesGeneratorOverridesTest.php +++ b/tests/Concerns/UsesGeneratorOverridesTest.php @@ -22,6 +22,8 @@ public function it_can_get_qualify_model_class() $this->assertSame([ 'user-model' => 'App\Models\User', 'welcome-view' => $this->app->joinPaths(base_path('resources'.DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.'welcome.blade.php')), + 'possible-models' => [], + 'possible-events' => [], ], $stub->toArray()); } } @@ -50,6 +52,8 @@ public function toArray() return [ 'user-model' => $this->qualifyModelUsingCanvas('User'), 'welcome-view' => $this->viewPathUsingCanvas('welcome.blade.php'), + 'possible-models' => $this->possibleModelsUsingCanvas(), + 'possible-events' => $this->possibleEventsUsingCanvas(), ]; }