From 1a805c26ee8fffbcfefce6c452442f04e140602d Mon Sep 17 00:00:00 2001 From: Christian Leucht Date: Mon, 18 Sep 2023 16:04:07 +0200 Subject: [PATCH] ElementFactoryTest // removes randomness from test cases. --- tests/phpunit/Unit/ElementFactoryTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/Unit/ElementFactoryTest.php b/tests/phpunit/Unit/ElementFactoryTest.php index 71b2a34..d0c7643 100644 --- a/tests/phpunit/Unit/ElementFactoryTest.php +++ b/tests/phpunit/Unit/ElementFactoryTest.php @@ -63,7 +63,7 @@ public function provideCreate(): Generator 'name' => 'foo', ], 'options' => [ - uniqid() => uniqid(), + 'foo' => 'bar', ], ], ElementInterface::class, @@ -383,7 +383,7 @@ public function testCreateMultiple(): void public function testCreateSetOptionsForElement(): void { $options = [ - uniqid() => uniqid(), + 'foo' => 'bar', ]; $elementSpec = [ 'attributes' => [ @@ -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()); } }