Skip to content

Commit bbeb6c3

Browse files
momito69OskarStark
andauthored
Update components/uid.rst
Co-authored-by: Oskar Stark <oskarstark@googlemail.com>
1 parent 3506c68 commit bbeb6c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/uid.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,11 +470,11 @@ In your tests, you can use ``MockUuidFactory`` to inject predictable UUIDs and v
470470
{
471471
public function testCreateUserIdReturnsExpectedUuid()
472472
{
473-
$uuids = [
473+
$factory = new MockUuidFactory([
474474
UuidV4::fromString('11111111-1111-4111-8111-111111111111'),
475475
UuidV4::fromString('22222222-2222-4222-8222-222222222222'),
476-
];
477-
$factory = new MockUuidFactory($uuids);
476+
]);
477+
478478
$service = new UserService($factory);
479479

480480
$this->assertSame('11111111-1111-4111-8111-111111111111', $service->createUserId());

0 commit comments

Comments
 (0)