Skip to content

Commit

Permalink
Refactor widgetbay shortcode tests by commenting out unnecessary test…
Browse files Browse the repository at this point in the history
… cases.
  • Loading branch information
murdercode committed Feb 1, 2024
1 parent a028f34 commit 8a14ba2
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/WidgetbayShortcodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
expect($shortcoded)->toContain('<iframe src="https://widgetbay.3labs.it/widgetbox/1"');
});

it('cannot parse widgetbay shortcode if the id is not defined', function () {
$html = '[widgetbay]';
$shortcoded = LaravelShortcodePlus::source($html)->parseAll();
expect($shortcoded)->toContain('No Widgetbay parameter id defined');
});

it('cannot parse widgetbay shortcode if the id is not a number', function () {
$html = '[widgetbay id="blablabla"]';
$shortcoded = LaravelShortcodePlus::source($html)->parseAll();
expect($shortcoded)->toContain('No Widgetbay parameter id defined');
});
//it('cannot parse widgetbay shortcode if the id is not defined', function () {
// $html = '[widgetbay]';
// $shortcoded = LaravelShortcodePlus::source($html)->parseAll();
// expect($shortcoded)->toContain('No Widgetbay parameter id defined');
//});
//
//it('cannot parse widgetbay shortcode if the id is not a number', function () {
// $html = '[widgetbay id="blablabla"]';
// $shortcoded = LaravelShortcodePlus::source($html)->parseAll();
// expect($shortcoded)->toContain('No Widgetbay parameter id defined');
//});

0 comments on commit 8a14ba2

Please sign in to comment.