1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 14:16:46 +02:00

feat(tests): fix tests for Flextype::getInstance() method #477

This commit is contained in:
Awilum
2020-10-18 16:47:38 +03:00
parent 4d7ef73551
commit 5657187477

View File

@@ -16,3 +16,11 @@ afterEach(function (): void {
test('test getVersion() method', function () {
$this->assertTrue(!Strings::create(flextype()->getVersion())->isEmpty());
});
test('test getInstance() method', function () {
$firstCall = Flextype::getInstance();
$secondCall = Flextype::getInstance();
$this->assertInstanceOf(Flextype::class, $firstCall);
$this->assertSame($firstCall, $secondCall);
});