Update Pest PHP

This commit is contained in:
philipp lang 2024-09-21 17:13:38 +02:00
parent b7a617aa62
commit 6d8e9de3d7
4 changed files with 732 additions and 420 deletions

View File

@ -25,7 +25,7 @@
"spatie/laravel-medialibrary": "^11.0",
"laravel/framework": "^10.0",
"spatie/laravel-data": "^3.1",
"pestphp/pest": "^1.22"
"pestphp/pest": "^2.0"
},
"require-dev": {
"orchestra/testbench": "^8.0",

1136
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
@ -9,11 +9,6 @@
<directory suffix="Test.php">./tests/Feature</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<php>
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
<env name="APP_ENV" value="testing"/>
@ -27,4 +22,9 @@
<env name="SESSION_DRIVER" value="array"/>
<env name="TELESCOPE_ENABLED" value="false"/>
</php>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>

View File

@ -1,6 +1,6 @@
<?php
use Illuminate\Auth\Access\Gate;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\Storage;
use Workbench\App\Models\Post;
use Workbench\App\Policies\PostPolicy;