Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbbeb6c3

Browse files
Update components/uid.rst
Co-authored-by: Oskar Stark <oskarstark@googlemail.com>
1 parent3506c68 commitbbeb6c3

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)

[8]ページ先頭

©2009-2025 Movatter.jp