Skip to content

Commit 1a805c2

Browse files
author
Christian Leucht
committed
ElementFactoryTest // removes randomness from test cases.
1 parent 58025cc commit 1a805c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/phpunit/Unit/ElementFactoryTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function provideCreate(): Generator
6363
'name' => 'foo',
6464
],
6565
'options' => [
66-
uniqid() => uniqid(),
66+
'foo' => 'bar',
6767
],
6868
],
6969
ElementInterface::class,
@@ -383,7 +383,7 @@ public function testCreateMultiple(): void
383383
public function testCreateSetOptionsForElement(): void
384384
{
385385
$options = [
386-
uniqid() => uniqid(),
386+
'foo' => 'bar',
387387
];
388388
$elementSpec = [
389389
'attributes' => [
@@ -393,8 +393,8 @@ public function testCreateSetOptionsForElement(): void
393393
'options' => $options,
394394
];
395395

396-
$elements = (new ElementFactory())->create($elementSpec);
396+
$element = (new ElementFactory())->create($elementSpec);
397397

398-
static::assertEquals($options, $elements->options());
398+
static::assertEquals($options, $element->options());
399399
}
400400
}

0 commit comments

Comments
 (0)