Fix SmiliesTest
authorPhilipp <admin@philipp.info>
Sun, 15 Oct 2023 13:58:15 +0000 (15:58 +0200)
committerPhilipp <admin@philipp.info>
Sun, 15 Oct 2023 19:29:53 +0000 (21:29 +0200)
Reduce noise because of wrong '<?php' test-data

tests/src/Core/Addon/Model/AddonLoaderTest.php
tests/src/Core/Hooks/Util/StrategiesFileManagerTest.php

index f49333b..7482291 100644 (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);
 
index ebb213f..b70d3d8 100644 (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);