"All new business logic should have corresponding unit tests."
Description
This PR introduces unit tests for the KeyLocationResource class. The tests cover the form schema, table columns, and page routes defined in the class. Specifically, the tests ensure that:
The form schema correctly requires location_name and address fields.
The table displays columns for location_name and address.
The page routes for listing, creating, and editing key locations are correctly defined and accessible.
The tests are located in a new file tests/Feature/KeyLocationResourceTest.php.
Summary of Changes
Created a new test file tests/Feature/KeyLocationResourceTest.php.
Added tests for form schema, table columns, and page routes in KeyLocationResourceTest.php.
These tests will help maintain the quality of our codebase by ensuring that the KeyLocationResource class works as expected.
PR Feedback (click)
[ ] 👍 Sweep Did Well
[ ] 👎 Sweep Needs Improvement
I created this PR to address this rule:
"All new business logic should have corresponding unit tests."
Description
This PR introduces unit tests for the
KeyLocationResource
class. The tests cover the form schema, table columns, and page routes defined in the class. Specifically, the tests ensure that:The form schema correctly requires
location_name
andaddress
fields.The table displays columns for
location_name
andaddress
.The page routes for listing, creating, and editing key locations are correctly defined and accessible.
The tests are located in a new file
tests/Feature/KeyLocationResourceTest.php
.Summary of Changes
tests/Feature/KeyLocationResourceTest.php
.KeyLocationResourceTest.php
.These tests will help maintain the quality of our codebase by ensuring that the
KeyLocationResource
class works as expected.