Skip to content

Commit

Permalink
OP-545: Behat TemplateContext.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jkindly committed Sep 20, 2024
1 parent a12fc54 commit d80f659
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/Behat/Context/Setup/TemplateContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand All @@ -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 = [
Expand Down

0 comments on commit d80f659

Please sign in to comment.