Skip to content

Commit

Permalink
feat(tests): fixing tests - next round #199
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Aug 1, 2021
1 parent ffe98a3 commit c9c4a96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/Support/Parsers/ShortcodeTest.php
Expand Up @@ -8,7 +8,7 @@
use Thunder\Shortcode\Shortcode\ShortcodeInterface;

test('test getInstance() method', function () {
$this->assertInstanceOf(Flextype\Support\Parsers\Shortcode::class, parsers()->shortcodes()->getInstance());
$this->assertInstanceOf(Flextype\Support\Parsers\Shortcodes::class, parsers()->shortcodes()->getInstance());
});

test('test addHandler() method', function () {
Expand Down
3 changes: 1 addition & 2 deletions tests/Support/Parsers/Shortcodes/UrlShortcodeTest.php
Expand Up @@ -3,8 +3,7 @@
declare(strict_types=1);

test('test registry_get shortcode', function () {
$this->assertStringContainsString('http', parsers()->shortcodes()->process('[url]'));

registry()->set('flextype.settings.url', 'https://flextype.org');

$this->assertStringContainsString('https://flextype.org', parsers()->shortcodes()->process('[url]'));
});

0 comments on commit c9c4a96

Please sign in to comment.