From 2e3cf1674ecea82bf0257f8c07d53c0cb9a4b034 Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 3 Nov 2020 18:12:17 +0300 Subject: [PATCH] feat(tests): try to use beforeAll and afterAll tests for Plugins #477 --- tests/Foundation/PluginsTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Foundation/PluginsTest.php b/tests/Foundation/PluginsTest.php index b209b781..29743a1a 100644 --- a/tests/Foundation/PluginsTest.php +++ b/tests/Foundation/PluginsTest.php @@ -5,7 +5,7 @@ declare(strict_types=1); use Flextype\Foundation\Flextype; use Atomastic\Strings\Strings; -beforeEach(function() { +beforeAll(function() { // Create sandbox plugin filesystem()->directory(PATH['project'])->create(0755, true); filesystem()->directory(PATH['project'] . '/plugins')->create(0755, true); @@ -16,7 +16,7 @@ beforeEach(function() { filesystem()->file(PATH['project'] . '/plugins/sandbox/plugin.yaml')->put('name: Sandbox'); }); -afterEach(function (): void { +afterAll(function (): void { filesystem()->directory(PATH['project'] . '/plugins/sandbox')->delete(); });