Created
September 26, 2018 14:36
-
-
Save adri/e744469075bc711d046f23ade5094569 to your computer and use it in GitHub Desktop.
Example fixture test case that persists objects to the database.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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