mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 09:54:03 +00:00
fix tests broken by #39
This commit is contained in:
parent
f4ec8c0fab
commit
c768bb7d60
7 changed files with 26 additions and 26 deletions
|
|
@ -13,8 +13,8 @@ test('opengraph methods properly sanitize input', function (string $method, stri
|
|||
expect($meta)->not()->toContain('content="Testing string " with several \' XSS characters </title> " . \' ."');
|
||||
expect($meta)->not()->toContain("content=\"{$unsanitizedContent}\"");
|
||||
|
||||
expect($meta)->toContain("<meta property=\"$property\" content=\"{$sanitizedContent}\" />");
|
||||
expect($meta)->toContain("<meta property=\"$property\" content=\"Testing string " with several ' XSS characters </title> " . ' .\" />");
|
||||
expect($meta)->toContain("<meta property=\"$property\" content=\"{$sanitizedContent}\">");
|
||||
expect($meta)->toContain("<meta property=\"$property\" content=\"Testing string " with several ' XSS characters </title> " . ' .\">");
|
||||
})->with([
|
||||
['site', 'og:site_name'],
|
||||
['url', 'og:url'],
|
||||
|
|
@ -37,8 +37,8 @@ test('the twitter extension properly sanitizes input', function (string $method,
|
|||
expect($meta)->not()->toContain('content="Testing string " with several \' XSS characters </title> " . \' ."');
|
||||
expect($meta)->not()->toContain("content=\"{$unsanitizedContent}\"");
|
||||
|
||||
expect($meta)->toContain("<meta name=\"$property\" content=\"{$sanitizedContent}\" />");
|
||||
expect($meta)->toContain("<meta name=\"$property\" content=\"Testing string " with several ' XSS characters </title> " . ' .\" />");
|
||||
expect($meta)->toContain("<meta name=\"$property\" content=\"{$sanitizedContent}\">");
|
||||
expect($meta)->toContain("<meta name=\"$property\" content=\"Testing string " with several ' XSS characters </title> " . ' .\">");
|
||||
})->with([
|
||||
['twitterCreator', 'twitter:creator'],
|
||||
['twitterSite', 'twitter:site'],
|
||||
|
|
@ -65,8 +65,8 @@ test('the title method properly sanitizes both tags', function () {
|
|||
|
||||
expect($meta)->toContain("<title>{$sanitizedContent}</title>");
|
||||
expect($meta)->toContain("<title>Testing string " with several ' XSS characters </title> " . ' .</title>");
|
||||
expect($meta)->toContain("<meta property=\"og:title\" content=\"{$sanitizedContent}\" />");
|
||||
expect($meta)->toContain("<meta property=\"og:title\" content=\"Testing string " with several ' XSS characters </title> " . ' .\" />");
|
||||
expect($meta)->toContain("<meta property=\"og:title\" content=\"{$sanitizedContent}\">");
|
||||
expect($meta)->toContain("<meta property=\"og:title\" content=\"Testing string " with several ' XSS characters </title> " . ' .\">");
|
||||
});
|
||||
|
||||
test('seo blade directive calls are sanitized', function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue