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:
@@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user