From 53c95fbfa25b0c2c56076e95d3a295fd1c940ef6 Mon Sep 17 00:00:00 2001 From: Adam Lee Date: Fri, 10 May 2024 01:03:23 +0100 Subject: [PATCH] feat: Make resource test called directly after generating each resource --- src/Commands/XtendStarterKit.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Commands/XtendStarterKit.php b/src/Commands/XtendStarterKit.php index 4f94d86..6b1f859 100644 --- a/src/Commands/XtendStarterKit.php +++ b/src/Commands/XtendStarterKit.php @@ -171,6 +171,14 @@ private function autoDiscoverResources(string $kitPath): void ], 'type' => 'new', ]); + + $this->call('rest-presenter:make-test', [ + 'kit_namespace' => $kitNamespace.'\\'.$resourceNamespace, + 'name' => $resourceName.'ResourceTest', + 'model' => $resource['model'], + 'test_type' => 'feature', + 'type' => 'resource', + ]); } }); }