Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Tests
fluttersdk/magic-starter-laravel
cursor
testing
testbench
refresh-database
fixtures
uuids
feature-tests
arrange-act-assert

Tests

Install
php artisan boost:add-skill fluttersdk/magic-starter-laravel

Save this content to: .cursor/rules/tests.md

# Tests

- Extend `FlutterSdk\MagicStarter\Tests\TestCase` (wraps Orchestra Testbench)
- Use `RefreshDatabase` trait for database isolation (in-memory SQLite)
- Register models in `setUp()`: `MagicStarter::useUserModel(ConcreteUser::class)`, etc.
- Create schema manually in `setUp()` via `Schema::create()` — no migration runner
- Override config in `setUp()`: `config(['magic-starter.features' => [...]])`
- Use fixtures from `tests/Fixtures/`: ConcreteUser, ConcreteTeam, ConcreteTeamUser, ConcreteTeamInvitation
- Fixtures use UUID primary keys — match with `ConditionallyUsesUuids` trait
- Test method naming: `test_<action>_<expected_behavior>` (snake_case)
- Arrange-Act-Assert pattern with explicit assertions (`assertEquals`, `assertTrue`, `assertNull`)
- Feature tests: call endpoints via `$this->postJson()`, `$this->getJson()`, assert status + JSON structure

Tests

  • Extend FlutterSdk\MagicStarter\Tests\TestCase (wraps Orchestra Testbench)
  • Use RefreshDatabase trait for database isolation (in-memory SQLite)
  • Register models in setUp(): MagicStarter::useUserModel(ConcreteUser::class), etc.
  • Create schema manually in setUp() via Schema::create() — no migration runner
  • Override config in setUp(): config(['magic-starter.features' => [...]])
  • Use fixtures from tests/Fixtures/: ConcreteUser, ConcreteTeam, ConcreteTeamUser, ConcreteTeamInvitation
  • Fixtures use UUID primary keys — match with ConditionallyUsesUuids trait
  • Test method naming: test_<action>_<expected_behavior> (snake_case)
  • Arrange-Act-Assert pattern with explicit assertions (assertEquals, assertTrue, assertNull)
  • Feature tests: call endpoints via $this->postJson(), $this->getJson(), assert status + JSON structure
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log