1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-23 13:23:18 +02:00

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

This commit is contained in:
Awilum
2020-11-03 18:12:17 +03:00
parent 317e8237e2
commit 2e3cf1674e

View File

@@ -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();
});