Fix SmiliesTest
Reduce noise because of wrong '<?php' test-data
This commit is contained in:
parent
4bcf5e07c0
commit
32ac54d830
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user