diff --git a/tests/Foundation/Entries/EntriesTest.php b/tests/Foundation/Entries/EntriesTest.php index 10721f81..7f4a939f 100644 --- a/tests/Foundation/Entries/EntriesTest.php +++ b/tests/Foundation/Entries/EntriesTest.php @@ -1,7 +1,5 @@ directory(PATH['project'] . '/entries')->create(); }); diff --git a/tests/Foundation/PluginsTest.php b/tests/Foundation/PluginsTest.php index eae2cbbe..1098bb95 100644 --- a/tests/Foundation/PluginsTest.php +++ b/tests/Foundation/PluginsTest.php @@ -6,6 +6,7 @@ use Flextype\Foundation\Flextype; use Atomastic\Strings\Strings; beforeEach(function() { + // Create sandbox plugin filesystem()->directory(PATH['project'])->create(); filesystem()->directory(PATH['project'] . '/plugins')->create(); @@ -14,6 +15,7 @@ beforeEach(function() { filesystem()->file(PATH['project'] . '/plugins/sandbox/lang/en_US.yaml')->put('sandbox_title: Sandbox'); filesystem()->file(PATH['project'] . '/plugins/sandbox/settings.yaml')->put('enabled: true'); filesystem()->file(PATH['project'] . '/plugins/sandbox/plugin.yaml')->put('name: Sandbox'); + }); afterEach(function (): void { diff --git a/tests/Pest.php b/tests/Pest.php index 72354a88..75a0d454 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -4,6 +4,7 @@ declare(strict_types=1); namespace Flextype; + define('FLEXTYPE_MINIMUM_PHP', '7.3.0'); define('ROOT_DIR', str_replace(DIRECTORY_SEPARATOR, '/', getcwd())); define('PATH', [ @@ -13,4 +14,5 @@ define('PATH', [ ! is_file($flextype_autoload = ROOT_DIR . '/vendor/autoload.php') and exit('Please run: composer install for flextype'); $flextype_loader = require_once $flextype_autoload; + include ROOT_DIR . '/src/flextype/bootstrap.php';