generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #329 from crynobone/feat/l11
Supports Laravel 11
- Loading branch information
Showing
8 changed files
with
67 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
<?php | ||
|
||
use function Pest\version; | ||
|
||
it('can render and send markdown', function () { | ||
ray()->markdown('## Hello World!'); | ||
|
||
assertMatchesOsSafeSnapshot($this->client->sentRequests()); | ||
}); | ||
})->skip(version_compare(version(), '2.0.0', '>=')); | ||
|
||
|
||
it('can render and send markdown for Pest 2', function () { | ||
ray()->markdown('## Hello World!'); | ||
|
||
assertMatchesOsSafeSnapshot($this->client->sentRequests()); | ||
})->skip(version_compare(version(), '2.0.0', '<')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
tests/__snapshots__/MarkdownTest__it_can_render_and_send_markdown_for_Pest_2__1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"uuid": "fakeUuid", | ||
"payloads": [ | ||
{ | ||
"type": "custom", | ||
"content": { | ||
"content": "<style>a { text-decoration:underline!important; }<\/style><div class=\"w-100 block\" style=\"font-size:1.8em!important;\">Hello World!<\/div>", | ||
"label": "Markdown" | ||
}, | ||
"origin": { | ||
"file": "\/vendor\/pestphp\/pest\/src\/Factories\/TestCaseMethodFactory.php", | ||
"line_number": 110, | ||
"hostname": "fake-hostname" | ||
} | ||
} | ||
], | ||
"meta": [] | ||
} | ||
] |