mirror of
https://github.com/flextype/flextype.git
synced 2025-08-10 15:14:20 +02:00
feat(tests): fix tmp directories creation #477
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
beforeEach(function() {
|
||||
filesystem()->directory(PATH['project'] . '/entries')->create();
|
||||
filesystem()->directory(PATH['project'] . '/entries')->create(0755, true);
|
||||
});
|
||||
|
||||
afterEach(function (): void {
|
||||
|
@@ -3,8 +3,8 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
beforeEach(function() {
|
||||
filesystem()->directory(PATH['project'] . '/uploads')->create();
|
||||
filesystem()->directory(PATH['project'] . '/uploads/.meta')->create();
|
||||
filesystem()->directory(PATH['project'] . '/uploads')->create(0755, true);
|
||||
filesystem()->directory(PATH['project'] . '/uploads/.meta')->create(0755, true);
|
||||
});
|
||||
|
||||
afterEach(function (): void {
|
||||
|
@@ -3,8 +3,8 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
beforeEach(function() {
|
||||
filesystem()->directory(PATH['project'] . '/uploads')->create();
|
||||
filesystem()->directory(PATH['project'] . '/uploads/.meta')->create();
|
||||
filesystem()->directory(PATH['project'] . '/uploads')->create(0755, true);
|
||||
filesystem()->directory(PATH['project'] . '/uploads/.meta')->create(0755, true);
|
||||
});
|
||||
|
||||
afterEach(function (): void {
|
||||
|
@@ -3,8 +3,8 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
beforeEach(function() {
|
||||
filesystem()->directory(PATH['project'] . '/uploads')->create();
|
||||
filesystem()->directory(PATH['project'] . '/uploads/.meta')->create();
|
||||
filesystem()->directory(PATH['project'] . '/uploads')->create(0755, true);
|
||||
filesystem()->directory(PATH['project'] . '/uploads/.meta')->create(0755, true);
|
||||
});
|
||||
|
||||
afterEach(function (): void {
|
||||
|
@@ -3,8 +3,8 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
beforeEach(function() {
|
||||
filesystem()->directory(PATH['project'] . '/uploads')->create();
|
||||
filesystem()->directory(PATH['project'] . '/uploads/.meta')->create();
|
||||
filesystem()->directory(PATH['project'] . '/uploads')->create(0755, true);
|
||||
filesystem()->directory(PATH['project'] . '/uploads/.meta')->create(0755, true);
|
||||
});
|
||||
|
||||
afterEach(function (): void {
|
||||
|
@@ -5,7 +5,7 @@ declare(strict_types=1);
|
||||
use Symfony\Component\Finder\Finder;
|
||||
|
||||
beforeEach(function() {
|
||||
filesystem()->directory(PATH['project'] . '/entries')->create();
|
||||
filesystem()->directory(PATH['project'] . '/entries')->create(0755, true);
|
||||
flextype('entries')->create('foo', []);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user