Skip to content

Commit

Permalink
Merge pull request #73 from spatie/shift-61511
Browse files Browse the repository at this point in the history
PHPUnit to Pest Converter
  • Loading branch information
freekmurze authored Apr 27, 2022
2 parents d316462 + be8020c commit 26ba29f
Show file tree
Hide file tree
Showing 13 changed files with 555 additions and 727 deletions.
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@
"spatie/laravel-package-tools": "^1.9"
},
"require-dev": {
"mockery/mockery": "^1.4",
"ohdearapp/ohdear-php-sdk": "^3.0",
"orchestra/testbench": "^7.0",
"phpunit/phpunit": "^9.4",
"pestphp/pest": "^1.20",
"pestphp/pest-plugin-laravel": "^1.2",
"spatie/phpunit-snapshot-assertions": "^4.2",
"spatie/test-time": "^1.2",
"mockery/mockery": "^1.4"
"spatie/test-time": "^1.2"
},
"suggest": {
"ohdearapp/ohdear-php-sdk": "Needed to sync your schedule with Oh Dear"
Expand All @@ -46,7 +47,7 @@
}
},
"scripts": {
"test": "vendor/bin/phpunit",
"test": "vendor/bin/pest",
"test-coverage": "vendor/bin/phpunit --coverage-html coverage",
"format": "vendor/bin/php-cs-fixer fix --allow-risky=yes"
},
Expand Down
3 changes: 2 additions & 1 deletion tests/Commands/ListCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Spatie\ScheduleMonitor\Commands\ListCommand;
use Spatie\ScheduleMonitor\Tests\TestClasses\TestJob;
use Spatie\ScheduleMonitor\Tests\TestClasses\TestKernel;
use function Pest\Laravel\artisan;

it('can list scheduled tasks', function () {
TestKernel::registerScheduledTasks(function (Schedule $schedule) {
Expand All @@ -16,5 +17,5 @@
$schedule->job(new TestJob())->daily();
});

$this->artisan(ListCommand::class)->assertSuccessful();
artisan(ListCommand::class)->assertSuccessful();
});
Loading

0 comments on commit 26ba29f

Please sign in to comment.