mirror of
https://github.com/friendica/friendica
synced 2024-12-22 19:20:17 +00:00
Fix SmiliesTest
Reduce noise because of wrong '<?php' test-data
This commit is contained in:
parent
4bcf5e07c0
commit
32ac54d830
2 changed files with 3 additions and 3 deletions
|
@ -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 a new issue