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:
18
tests/Foundation/FlextypeTest.php
Normal file
18
tests/Foundation/FlextypeTest.php
Normal 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());
|
||||
});
|
Reference in New Issue
Block a user