Test infra: extract shared Scenario/Bucket persistence helpers into a trait #65
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Surfaced during code review of #64. The private
persistScenario()/persistBucket()helpers are now duplicated across three functional test files:tests/Functional/ScenarioApiTest.phptests/Functional/BucketApiTest.phptests/Functional/ScenarioOwnerApiTest.php(itspersistScenariotakes an explicit$ownerparam — a legitimate variation to preserve)Scope
Extract them into a shared trait (e.g.
tests/Concerns/CreatesScenariosAndBuckets.php), mirroring the existingtests/Concerns/CreatesUsers.phppattern. Accommodate the owner-param variation (default to the caller's user, allow an explicit owner override).Out of scope
Notes