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

feat(tests): update and improve tests

This commit is contained in:
Awilum
2021-08-14 19:55:34 +03:00
parent ff2e9e523a
commit 493a906fcc

View File

@@ -6,17 +6,22 @@ use Flextype\Flextype;
use Flextype\Content\Content;
use Atomastic\Strings\Strings;
use Slim\App;
use DI\Container;
test('test flextype() helper', function () {
$this->assertSame(flextype(), Flextype::getInstance());
expect(flextype())->toBeInstanceOf(Flextype::class);
});
test('test app() helper', function () {
$this->assertSame(app(), Flextype::getInstance()->app());
expect(app())->toBeInstanceOf(App::class);
});
test('test container() helper', function () {
$this->assertSame(container(), Flextype::getInstance()->container());
$this->assertSame(container(), Flextype::getInstance()->app()->getContainer());
expect(container())->toBeInstanceOf(Container::class);
});
test('test emitter() helper', function () {