mirror of
https://github.com/archtechx/laravel-pages.git
synced 2025-12-12 09:54:03 +00:00
Use please() in tests
This commit is contained in:
parent
154f22a573
commit
56802a668e
4 changed files with 14 additions and 13 deletions
|
|
@ -12,6 +12,7 @@
|
|||
*/
|
||||
|
||||
use ArchTech\Pages\Tests\TestCase;
|
||||
use Pest\TestSuite;
|
||||
|
||||
uses(ArchTech\Pages\Tests\TestCase::class)->in('Feature');
|
||||
|
||||
|
|
@ -41,7 +42,7 @@ expect()->extend('toBeOne', function () {
|
|||
|
|
||||
*/
|
||||
|
||||
function using($test): TestCase
|
||||
function please(): TestCase
|
||||
{
|
||||
return $test;
|
||||
return TestSuite::getInstance()->test;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue