Fix SmiliesTest

Reduce noise because of wrong '<?php' test-data
This commit is contained in:
Philipp Holzer 2023-10-15 15:58:15 +02:00
parent 4bcf5e07c0
commit 32ac54d830
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
2 changed files with 3 additions and 3 deletions

View file

@ -160,7 +160,7 @@ EOF;
public function testWrongContent()
{
$filename = 'addon/testaddon1/static/hooks.config.php';
$wrongContent = "<php return 'wrong';";
$wrongContent = "<?php return 'wrong';";
vfsStream::create($this->structure)->at($this->root);
@ -190,7 +190,7 @@ EOF;
public function testNoHooksConfig()
{
$filename = 'addon/testaddon1/static/hooks.config.php';
$wrongContent = "<php return 'wrong';";
$wrongContent = "<?php return 'wrong';";
vfsStream::create($this->structure)->at($this->root);

View file

@ -190,7 +190,7 @@ EOF,
$hookFileManager = new StrategiesFileManager($this->root->url(), $addonLoader);
vfsStream::newFile(StrategiesFileManager::STATIC_DIR . '/' . StrategiesFileManager::CONFIG_NAME . '.config.php')
->withContent("<php return 'WRONG_CONTENT';")
->withContent("<?php return 'WRONG_CONTENT';")
->at($this->root);
self::expectException(HookConfigException::class);