PHP code example of tranquil-tools / laravel-pest-recorder
1. Go to this page and download the library: Download tranquil-tools/laravel-pest-recorder library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tranquil-tools / laravel-pest-recorder example snippets
it('test name', function () {
$this->actingAs(\App\Models\User::factory()->create());
$page = visit('/dashboard');
$page->assertSee('...');
});
bash
php artisan vendor:publish --tag="laravel-pest-recorder-config"
cli
php artisan pest:record
cli
php artisan pest:record
--env=testing
--url=http://localhost:8001
--visit=/login
--acting-as=user
--server=true
--migrate-fresh=false
--seed=false
--viewport-size=fullscreen