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

feat(tests): add tests for Flextype #477

This commit is contained in:
Awilum
2020-10-18 16:46:43 +03:00
parent 1e49e912dc
commit d2312ce92a

View File

@@ -0,0 +1,18 @@
<?php
declare(strict_types=1);
use Flextype\Foundation\Flextype;
use Atomastic\Strings\Strings;
beforeEach(function() {
filesystem()->directory(PATH['project'] . '/entries')->create();
});
afterEach(function (): void {
filesystem()->directory(PATH['project'] . '/entries')->delete();
});
test('test getVersion() method', function () {
$this->assertTrue(!Strings::create(flextype()->getVersion())->isEmpty());
});