⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
shopware
/
custom
/
plugins
/
SwagPayPal
/
tests
/
Edit File: TestBootstrap.php
<?php declare(strict_types=1); /* * (c) shopware AG <info@shopware.com> * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use Shopware\Core\TestBootstrapper; if (is_readable(__DIR__ . '/../vendor/shopware/platform/src/Core/TestBootstrapper.php')) { require __DIR__ . '/../vendor/shopware/platform/src/Core/TestBootstrapper.php'; } elseif (is_readable(__DIR__ . '/../vendor/shopware/core/TestBootstrapper.php')) { require __DIR__ . '/../vendor/shopware/core/TestBootstrapper.php'; } else { // vendored from platform, only use local TestBootstrapper if not already defined in platform require __DIR__ . '/TestBootstrapper.php'; } return (new TestBootstrapper()) ->setProjectDir($_SERVER['PROJECT_ROOT'] ?? dirname(__DIR__, 4)) ->setLoadEnvFile(true) ->setForceInstallPlugins(true) ->addActivePlugins('SwagCmsExtensions') ->addCallingPlugin() ->bootstrap() ->setClassLoader(require dirname(__DIR__) . '/vendor/autoload.php') ->getClassLoader();
Simpan