mirror of
https://github.com/flextype/flextype.git
synced 2025-08-07 21:56:33 +02:00
feat(tests): use ensureExists instead of create for plugins and content tests
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
beforeEach(function() {
|
||||
filesystem()->directory(PATH['project'] . '/entries/content')->create(0755, true);
|
||||
filesystem()->directory(PATH['project'] . '/entries/content')->ensureExists(0755, true);
|
||||
});
|
||||
|
||||
afterEach(function (): void {
|
||||
|
@@ -7,8 +7,8 @@ use Atomastic\Strings\Strings;
|
||||
|
||||
beforeEach(function() {
|
||||
// Create sandbox plugin
|
||||
@filesystem()->directory(PATH['project'])->create();
|
||||
@filesystem()->directory(PATH['project'] . '/plugins')->create();
|
||||
filesystem()->directory(PATH['project'])->ensureExists(0755, true);
|
||||
filesystem()->directory(PATH['project'] . '/plugins')->ensureExists(0755, true);
|
||||
filesystem()->directory(PATH['project'] . '/plugins/sandbox')->create(0755, true);
|
||||
filesystem()->directory(PATH['project'] . '/plugins/sandbox/lang/')->create(0755, true);
|
||||
filesystem()->file(PATH['project'] . '/plugins/sandbox/lang/en_US.yaml')->put('sandbox_title: Sandbox');
|
||||
|
Reference in New Issue
Block a user