Skip to content

Commit

Permalink
feat: Make resource test called directly after generating each resource
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-code-labx committed May 10, 2024
1 parent 59e598b commit 53c95fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Commands/XtendStarterKit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]);
}
});
}
Expand Down

0 comments on commit 53c95fb

Please sign in to comment.