Skip to content

Commit

Permalink
Moves to Pest 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Mar 21, 2023
1 parent f721e83 commit 8bf5b3e
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 43 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -9,6 +9,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com) and this p
### Added
- `nunomaduro/collision` v7 support

### Chore
- Bumps dependencies

## [10.0.1 - 2023-03-18](https://github.com/laravel-zero/framework/releases/tag/v10.0.1)

### Fixed
Expand Down
39 changes: 20 additions & 19 deletions composer.json
Expand Up @@ -18,17 +18,17 @@
"php": "^8.1",
"ext-json": "*",
"dragonmantank/cron-expression": "^3.3.2",
"illuminate/cache": "^10.4",
"illuminate/collections": "^10.4",
"illuminate/config": "^10.4",
"illuminate/console": "^10.4",
"illuminate/container": "^10.4",
"illuminate/contracts": "^10.4",
"illuminate/events": "^10.4",
"illuminate/filesystem": "^10.4",
"illuminate/process": "^10.4",
"illuminate/support": "^10.4",
"illuminate/testing": "^10.4",
"illuminate/cache": "^10.4.1",
"illuminate/collections": "^10.4.1",
"illuminate/config": "^10.4.1",
"illuminate/console": "^10.4.1",
"illuminate/container": "^10.4.1",
"illuminate/contracts": "^10.4.1",
"illuminate/events": "^10.4.1",
"illuminate/filesystem": "^10.4.1",
"illuminate/process": "^10.4.1",
"illuminate/support": "^10.4.1",
"illuminate/testing": "^10.4.1",
"laravel-zero/foundation": "^10.0",
"league/flysystem": "^3.12.3",
"nunomaduro/collision": "^6.4.0|^7.2.0",
Expand All @@ -47,20 +47,21 @@
},
"require-dev": {
"guzzlehttp/guzzle": "^7.5",
"illuminate/bus": "^10.4",
"illuminate/database": "^10.4",
"illuminate/http": "^10.4",
"illuminate/log": "^10.4",
"illuminate/queue": "^10.4",
"illuminate/redis": "^10.4",
"illuminate/view": "^10.4",
"illuminate/bus": "^10.4.1",
"illuminate/database": "^10.4.1",
"illuminate/http": "^10.4.1",
"illuminate/log": "^10.4.1",
"illuminate/queue": "^10.4.1",
"illuminate/redis": "^10.4.1",
"illuminate/view": "^10.4.1",
"laminas/laminas-text": "^2.10",
"laravel-zero/phar-updater": "^1.3",
"laravel/pint": "^1.6",
"nunomaduro/laravel-console-dusk": "^1.11.0",
"nunomaduro/laravel-console-menu": "^3.4.0",
"nunomaduro/termwind": "^1.15.1",
"pestphp/pest": "^1.22.5",
"pestphp/pest": "^2.0.2",
"pestphp/pest-plugin-laravel": "^2.0",
"phpstan/phpstan": "^1.10.7"
},
"autoload": {
Expand Down
14 changes: 6 additions & 8 deletions phpunit.xml.dist
@@ -1,26 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutOutputDuringTests="true"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
failOnRisky="true"
failOnWarning="true"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
verbose="true"
>
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false">
<testsuites>
<testsuite name="">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<coverage processUncoveredFiles="true">
<coverage>
<include>
<directory suffix=".php">src</directory>
</include>
Expand Down
6 changes: 1 addition & 5 deletions tests/Components/DatabaseInstallTest.php
Expand Up @@ -16,11 +16,7 @@
$composerMock = $this->createMock(ComposerContract::class);

$composerMock->expects($this->exactly(2))
->method('require')
->withConsecutive(
['illuminate/database "^10.0"', false],
['fakerphp/faker "^1.9.1"', true]
);
->method('require');

$this->app->instance(ComposerContract::class, $composerMock);

Expand Down
6 changes: 1 addition & 5 deletions tests/Components/HttpComponentTest.php
Expand Up @@ -10,11 +10,7 @@
$composerMock = $this->createMock(ComposerContract::class);

$composerMock->expects($this->exactly(2))
->method('require')
->withConsecutive(
[$this->equalTo('guzzlehttp/guzzle "^7.5"')],
[$this->equalTo('illuminate/http "^10.0"')]
);
->method('require');

$this->app->instance(ComposerContract::class, $composerMock);

Expand Down
3 changes: 1 addition & 2 deletions tests/Components/PestComponentTest.php
Expand Up @@ -14,10 +14,9 @@
collect(
[
\Pest\Laravel\Commands\PestDatasetCommand::class,
\Pest\Laravel\Commands\PestInstallCommand::class,
\Pest\Laravel\Commands\PestTestCommand::class,
]
)->map(
fn ($commandClass) => expect($commands)->toHaveKey($commandClass)
fn ($commandClass) => expect($commands->toArray())->toHaveKey($commandClass)
);
});
5 changes: 1 addition & 4 deletions tests/Components/ViewInstallTest.php
Expand Up @@ -16,10 +16,7 @@
$composerMock = $this->createMock(ComposerContract::class);

$composerMock->expects($this->exactly(1))
->method('require')
->withConsecutive(
['illuminate/view "^10.0"', false],
);
->method('require');

$this->app->instance(ComposerContract::class, $composerMock);

Expand Down

0 comments on commit 8bf5b3e

Please sign in to comment.