Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion console-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ By default, the `Illuminate\Console\Events\CommandStarting` and `Illuminate\Cons

use Illuminate\Foundation\Testing\WithConsoleEvents;

uses(WithConsoleEvents::class);
pest()->use(WithConsoleEvents::class);

// ...
```
Expand Down
4 changes: 2 additions & 2 deletions database-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Before proceeding much further, let's discuss how to reset your database after e

use Illuminate\Foundation\Testing\RefreshDatabase;

uses(RefreshDatabase::class);
pest()->use(RefreshDatabase::class);

test('basic example', function () {
$response = $this->get('/');
Expand Down Expand Up @@ -98,7 +98,7 @@ use Database\Seeders\OrderStatusSeeder;
use Database\Seeders\TransactionStatusSeeder;
use Illuminate\Foundation\Testing\RefreshDatabase;

uses(RefreshDatabase::class);
pest()->use(RefreshDatabase::class);

test('orders can be created', function () {
// Run the DatabaseSeeder...
Expand Down
8 changes: 4 additions & 4 deletions dusk.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ The `DatabaseMigrations` trait will run your database migrations before each tes
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Laravel\Dusk\Browser;

uses(DatabaseMigrations::class);
pest()->use(DatabaseMigrations::class);

//
```
Expand Down Expand Up @@ -199,7 +199,7 @@ The `DatabaseTruncation` trait will migrate your database on the first test in o
use Illuminate\Foundation\Testing\DatabaseTruncation;
use Laravel\Dusk\Browser;

uses(DatabaseTruncation::class);
pest()->use(DatabaseTruncation::class);

//
```
Expand Down Expand Up @@ -357,7 +357,7 @@ use App\Models\User;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Laravel\Dusk\Browser;

uses(DatabaseMigrations::class);
pest()->use(DatabaseMigrations::class);

test('basic example', function () {
$user = User::factory()->create([
Expand Down Expand Up @@ -2474,7 +2474,7 @@ use Illuminate\Foundation\Testing\DatabaseMigrations;
use Laravel\Dusk\Browser;
use Tests\Browser\Components\DatePicker;

uses(DatabaseMigrations::class);
pest()->use(DatabaseMigrations::class);

test('basic example', function () {
$this->browse(function (Browser $browser) {
Expand Down
2 changes: 1 addition & 1 deletion facades.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ use App\Models\Podcast;
use Facades\App\Contracts\Publisher;
use Illuminate\Foundation\Testing\RefreshDatabase;

uses(RefreshDatabase::class);
pest()->use(RefreshDatabase::class);

test('podcast can be published', function () {
$podcast = Podcast::factory()->create();
Expand Down