Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example fixture test case that persists objects to the database.
<?php
class ExampleTest extends FixtureTestCase
{
/**
* @test
*/
public function testSomething() : void
{
$payout = $this->fixture()->payout(function (PayoutContext $payout) {
$payout->payoutId = PayoutId::fromString('03f74472-0e31-4d5c-8f61-bf34bda2dcb2');
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment