From d80f6590a9030a7467150048e8a81ce24bbae83d Mon Sep 17 00:00:00 2001 From: jkindly Date: Fri, 20 Sep 2024 14:25:06 +0200 Subject: [PATCH] OP-545: Behat TemplateContext.php --- tests/Behat/Context/Setup/TemplateContext.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/Behat/Context/Setup/TemplateContext.php b/tests/Behat/Context/Setup/TemplateContext.php index 6198794c..2416e3b7 100644 --- a/tests/Behat/Context/Setup/TemplateContext.php +++ b/tests/Behat/Context/Setup/TemplateContext.php @@ -5,15 +5,14 @@ namespace Tests\Sylius\CmsPlugin\Behat\Context\Setup; use Behat\Behat\Context\Context; -use Behat\Behat\Tester\Exception\PendingException; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Yaml\Yaml; final class TemplateContext implements Context { private Filesystem $filesystem; - private $tempConfigFile; - private $tempTemplateFile; + private string $tempConfigFile; + private string $tempTemplateFile; public function __construct() { @@ -23,7 +22,7 @@ public function __construct() /** * @Given there is an existing template with :template value */ - public function thereIsAnExistingTemplateWithValue($template) + public function thereIsAnExistingTemplateWithValue($template): void { $this->tempConfigFile = __DIR__ . '/../../../Application/config/packages/sylius_cms_test.yaml'; $config = [