diff --git a/tests/src/flextype/FlextypHelperTest.php b/tests/src/flextype/FlextypHelperTest.php index afa5f979..4303cc5f 100644 --- a/tests/src/flextype/FlextypHelperTest.php +++ b/tests/src/flextype/FlextypHelperTest.php @@ -16,13 +16,4 @@ test('test getInstance() method', function () { $this->assertInstanceOf(Flextype::class, $firstCall); $this->assertSame($firstCall, $secondCall); -}); - -test('test container() method', function () { - // get container - //$this->assertInstanceOf(Entries::class, entries()); - - // set container - //flextype()->container()()['foo'] = 'bar'; - //$this->assertEquals('bar', flextype('foo')); -}); +}); \ No newline at end of file diff --git a/tests/src/flextype/FlextypeTest.php b/tests/src/flextype/FlextypeTest.php index 90f5d176..c89c81f4 100644 --- a/tests/src/flextype/FlextypeTest.php +++ b/tests/src/flextype/FlextypeTest.php @@ -24,13 +24,4 @@ test('test getInstance() method', function () { $this->assertInstanceOf(Flextype::class, $firstCall); $this->assertSame($firstCall, $secondCall); -}); - -test('test container() method', function () { - // get container - // $this->assertInstanceOf(Entries::class, Flextype::getInstance()->container('entries')); - - // set container - // Flextype::getInstance()->container()['foo'] = 'bar'; - //$this->assertEquals('bar', Flextype::getInstance()->container('foo')); -}); +}); \ No newline at end of file diff --git a/tests/src/flextype/PluginsTest.php b/tests/src/flextype/PluginsTest.php index 79db09f0..a7df6b4e 100644 --- a/tests/src/flextype/PluginsTest.php +++ b/tests/src/flextype/PluginsTest.php @@ -14,7 +14,7 @@ beforeEach(function() { filesystem()->file(PATH['project'] . '/plugins/sandbox/lang/en_US.yaml')->put('sandbox_title: Sandbox'); filesystem()->file(PATH['project'] . '/plugins/sandbox/settings.yaml')->put('enabled: true'); filesystem()->file(PATH['project'] . '/plugins/sandbox/plugin.yaml')->put('name: Sandbox'); - + filesystem()->file(PATH['project'] . '/plugins/sandbox/plugin.php')->put('assertTrue(is_array(flextype('plugins')->getPLuginsList())); - $this->assertTrue(isset(flextype('plugins')->getPLuginsList()['sandbox'])); + $this->assertTrue(is_array(plugins()->getPLuginsList())); + $this->assertTrue(isset(plugins()->getPLuginsList()['sandbox'])); }); test('test getLocales() method', function () { - $this->assertTrue(is_array(flextype('plugins')->getLocales())); - $this->assertTrue(isset(flextype('plugins')->getLocales()['en_US'])); + $this->assertTrue(is_array(plugins()->getLocales())); + $this->assertTrue(isset(plugins()->getLocales()['en_US'])); }); test('test getPluginsDictionary() method', function () { - $this->assertTrue(is_array(flextype('plugins')->getPluginsDictionary(flextype('plugins')->getPLuginsList(), 'en_US'))); - $this->assertTrue(isset(flextype('plugins')->getPluginsDictionary(flextype('plugins')->getPLuginsList(), 'en_US')['en_US']['sandbox_title'])); + $this->assertTrue(is_array(plugins()->getPluginsDictionary(plugins()->getPLuginsList(), 'en_US'))); + $this->assertTrue(isset(plugins()->getPluginsDictionary(plugins()->getPLuginsList(), 'en_US')['en_US']['sandbox_title'])); }); test('test getPluginsCacheID() method', function () { - $md5 = flextype('plugins')->getPluginsCacheID(flextype('plugins')->getPLuginsList()); + $md5 = plugins()->getPluginsCacheID(plugins()->getPLuginsList()); $this->assertTrue(strlen($md5) == 32 && ctype_xdigit($md5)); });