From 23cc7cec2dfc9b901eb3f0baf27148705aeb7a4e Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 21 Apr 2021 00:11:36 +0100 Subject: [PATCH] Add the action to PostTest --- .../custom/blog/src/Action/ConvertPostToTweet.php | 11 +++++++++++ .../blog/tests/src/Kernel/Entity/Node/PostTest.php | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 web/modules/custom/blog/src/Action/ConvertPostToTweet.php diff --git a/web/modules/custom/blog/src/Action/ConvertPostToTweet.php b/web/modules/custom/blog/src/Action/ConvertPostToTweet.php new file mode 100644 index 0000000..1f6ddc5 --- /dev/null +++ b/web/modules/custom/blog/src/Action/ConvertPostToTweet.php @@ -0,0 +1,11 @@ +postFactory->create(); @@ -83,6 +86,7 @@ final class PostTest extends EntityKernelTestBase { parent::setUp(); $this->postFactory = $this->container->get(PostFactory::class); + $this->convertPostToTweet = $this->container->get(ConvertPostToTweet::class); $this->installEntitySchema('taxonomy_term');