Skip to content

Commit

Permalink
ElementFactoryTest // removes randomness from test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrico committed Sep 18, 2023
1 parent 58025cc commit 1a805c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/phpunit/Unit/ElementFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function provideCreate(): Generator
'name' => 'foo',
],
'options' => [
uniqid() => uniqid(),
'foo' => 'bar',
],
],
ElementInterface::class,
Expand Down Expand Up @@ -383,7 +383,7 @@ public function testCreateMultiple(): void
public function testCreateSetOptionsForElement(): void
{
$options = [
uniqid() => uniqid(),
'foo' => 'bar',
];
$elementSpec = [
'attributes' => [
Expand All @@ -393,8 +393,8 @@ public function testCreateSetOptionsForElement(): void
'options' => $options,
];

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

static::assertEquals($options, $elements->options());
static::assertEquals($options, $element->options());
}
}

0 comments on commit 1a805c2

Please sign in to comment.