This repository was archived by the owner on Jan 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Interesting testing utilities to add #3
Labels
hacktoberfest
Good issue for Hacktoberfest participants
Comments
Hi @eduarguzher, I really like these! To answer your question about where they'd fit in this package, I think they would be nice as class-based macros with their own service provider(s). That way, people might use them like this: public function setUp()
{
parent::setUp();
$this->app->register(CollectionTestMacros::class);
}
/** @test */
public function it_tests_things_in_a_collection()
{
collect()->customMacroAssertion();
} This mixin behaviour can be seen here. Could you make a PR to add these in? 😄 |
cool! |
Fixed by #4. |
Actually, gonna keep this open in case anyone wants to pick up the |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What kind of testing utils would you like to have in this package?
I have some utilities from courses, screencasts and some made by my own. Would they fit in a package like this?, later should be, how would they be added? given they are macros
$collection->assertContains($model)
$collection->assertNotContains($model)
$response->getData('article')
$response->assertStatusNotEquals(200)
$response->assertRedirect()->assertLocationDifferent('/home')
The text was updated successfully, but these errors were encountered: