From 0c326d0b5533ef871169abea57498a876daa3625 Mon Sep 17 00:00:00 2001 From: Alexis Lefebvre Date: Sun, 7 Jul 2019 18:36:17 +0200 Subject: [PATCH] Add missing test for workflow dump description --- src/Symfony/Component/Workflow/Tests/WorkflowBuilderTrait.php | 1 + .../Tests/fixtures/puml/square/simple-workflow-marking.puml | 3 ++- .../Tests/fixtures/puml/square/simple-workflow-nomarking.puml | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Workflow/Tests/WorkflowBuilderTrait.php b/src/Symfony/Component/Workflow/Tests/WorkflowBuilderTrait.php index 12c8f745e07f9..ae48d52d07ee5 100644 --- a/src/Symfony/Component/Workflow/Tests/WorkflowBuilderTrait.php +++ b/src/Symfony/Component/Workflow/Tests/WorkflowBuilderTrait.php @@ -56,6 +56,7 @@ private function createSimpleWorkflowDefinition() $placesMetadata = []; $placesMetadata['c'] = [ 'bg_color' => 'DeepSkyBlue', + 'description' => 'My custom place description', ]; $transitionsMetadata = new \SplObjectStorage(); diff --git a/src/Symfony/Component/Workflow/Tests/fixtures/puml/square/simple-workflow-marking.puml b/src/Symfony/Component/Workflow/Tests/fixtures/puml/square/simple-workflow-marking.puml index a316b64253809..0ea138f83f725 100644 --- a/src/Symfony/Component/Workflow/Tests/fixtures/puml/square/simple-workflow-marking.puml +++ b/src/Symfony/Component/Workflow/Tests/fixtures/puml/square/simple-workflow-marking.puml @@ -17,7 +17,8 @@ skinparam agent { } state "a" <> state "b" <> -state "c" <> +state "c" <> as c +c : My custom place description agent "t1" agent "t2" "a" -[#Purple]-> "t1": "My custom transition label 2" diff --git a/src/Symfony/Component/Workflow/Tests/fixtures/puml/square/simple-workflow-nomarking.puml b/src/Symfony/Component/Workflow/Tests/fixtures/puml/square/simple-workflow-nomarking.puml index 348ff6476b751..02e7f396eacb3 100644 --- a/src/Symfony/Component/Workflow/Tests/fixtures/puml/square/simple-workflow-nomarking.puml +++ b/src/Symfony/Component/Workflow/Tests/fixtures/puml/square/simple-workflow-nomarking.puml @@ -17,7 +17,8 @@ skinparam agent { } state "a" <> state "b" -state "c" <> +state "c" <> as c +c : My custom place description agent "t1" agent "t2" "a" -[#Purple]-> "t1": "My custom transition label 2"