This commit is contained in:
Dan Harrin
2024-07-30 12:20:32 +01:00
parent 9032f1271e
commit 768af7682f
4 changed files with 13 additions and 12 deletions
+3 -3
View File
@@ -417,7 +417,7 @@ class TestsForms
Assert::assertArrayHasKey(
$step - 1,
$wizard->getChildComponents(),
"Wizard does not have a step {$step}"
"Wizard does not have a step {$step}."
);
return $this;
@@ -438,7 +438,7 @@ class TestsForms
Assert::assertEquals(
$step,
$current = $wizard->getCurrentStepIndex() + 1,
"Failed asserting that wizard is on step {$step}, current step is {$current}"
"Failed asserting that wizard is on step {$step}, current step is {$current}."
);
return $this;
@@ -447,7 +447,7 @@ class TestsForms
public function goToWizardStep(): Closure
{
return function (int $step = 1, string $formName = 'form'): static {
return function (int $step, string $formName = 'form'): static {
/** @phpstan-ignore-next-line */
$this->assertWizardStepExists($step, $formName);