diff --git a/tests/Foundation/Entries/Fields/CreatedAtFieldTest.php b/tests/Foundation/Entries/Fields/CreatedAtFieldTest.php index 0719b65d..b9fc101e 100644 --- a/tests/Foundation/Entries/Fields/CreatedAtFieldTest.php +++ b/tests/Foundation/Entries/Fields/CreatedAtFieldTest.php @@ -16,17 +16,4 @@ test('test CreatedAtField', function () { $created_at = flextype('entries')->fetch('foo')['created_at']; $this->assertTrue(strlen($created_at) > 0); $this->assertTrue((ctype_digit($created_at) && strtotime(date('Y-m-d H:i:s', $created_at)) === (int)$created_at)); - - // 2 - flextype('entries')->create('tmp', []); - $_created_at = flextype('entries')->fetch('tmp'); - $_created_at['created_at'] = null; - - filesystem()->file(PATH['project'] . '/entries/bar/entry.md') - ->put(flextype('frontmatter') - ->encode($_created_at)); - - $created_at = flextype('entries')->fetch('bar')['created_at']; - - $this->assertTrue($created_at === null); }); diff --git a/tests/Foundation/PluginsTest.php b/tests/Foundation/PluginsTest.php index 3d4b402c..e326fede 100644 --- a/tests/Foundation/PluginsTest.php +++ b/tests/Foundation/PluginsTest.php @@ -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'])->create(); + @filesystem()->directory(PATH['project'] . '/plugins')->create(); 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');