diff --git a/core/modules/workflows/tests/src/Functional/WorkflowUiTest.php b/core/modules/workflows/tests/src/Functional/WorkflowUiTest.php index 886750161c..78d247d022 100644 --- a/core/modules/workflows/tests/src/Functional/WorkflowUiTest.php +++ b/core/modules/workflows/tests/src/Functional/WorkflowUiTest.php @@ -307,15 +307,19 @@ public function testNumericIds() { $this->submitForm(['label' => 456, 'id' => 456], 'Save'); $this->assertSession()->pageTextContains('Created 456 state.'); + $this->clickLink('Add a new state'); + $this->submitForm(['label' => 789, 'id' => 789], 'Save'); + $this->assertSession()->pageTextContains('Created 789 state.'); + $this->clickLink('Add a new transition'); - $this->submitForm(['id' => 789, 'label' => 789, 'from[456]' => 456, 'to' => 456], 'Save'); - $this->assertSession()->pageTextContains('Created 789 transition.'); + $this->submitForm(['id' => 101112, 'label' => 101112, 'from[456]' => 456, 'to' => 789], 'Save'); + $this->assertSession()->pageTextContains('Created 101112 transition.'); $workflow = $this->container->get('entity_type.manager')->getStorage('workflow')->loadUnchanged(123); $this->assertEquals(123, $workflow->id()); $this->assertEquals(456, $workflow->getTypePlugin()->getState(456)->id()); - $this->assertEquals(789, $workflow->getTypePlugin()->getTransition(789)->id()); - $this->assertEquals(456, $workflow->getTypePlugin()->getTransition(789)->to()->id()); + $this->assertEquals(101112, $workflow->getTypePlugin()->getTransition(101112)->id()); + $this->assertEquals(789, $workflow->getTypePlugin()->getTransition(101112)->to()->id()); } }