1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 06:06:45 +02:00

feat(tests): REVERT - try to use beforeAll and afterAll tests for Plugins #477

This commit is contained in:
Awilum
2020-11-03 18:15:46 +03:00
parent 2e3cf1674e
commit 242f0739ad

View File

@@ -5,7 +5,7 @@ declare(strict_types=1);
use Flextype\Foundation\Flextype;
use Atomastic\Strings\Strings;
beforeAll(function() {
beforeEach(function() {
// Create sandbox plugin
filesystem()->directory(PATH['project'])->create(0755, true);
filesystem()->directory(PATH['project'] . '/plugins')->create(0755, true);
@@ -16,7 +16,7 @@ beforeAll(function() {
filesystem()->file(PATH['project'] . '/plugins/sandbox/plugin.yaml')->put('name: Sandbox');
});
afterAll(function (): void {
afterEach(function (): void {
filesystem()->directory(PATH['project'] . '/plugins/sandbox')->delete();
});