Skip to content

Commit 8bf5b3e

Browse files
committed
Moves to Pest 2
1 parent f721e83 commit 8bf5b3e

File tree

7 files changed

+33
-43
lines changed

7 files changed

+33
-43
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com) and this p
99
### Added
1010
- `nunomaduro/collision` v7 support
1111

12+
### Chore
13+
- Bumps dependencies
14+
1215
## [10.0.1 - 2023-03-18](https://github.com/laravel-zero/framework/releases/tag/v10.0.1)
1316

1417
### Fixed

composer.json

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
"php": "^8.1",
1919
"ext-json": "*",
2020
"dragonmantank/cron-expression": "^3.3.2",
21-
"illuminate/cache": "^10.4",
22-
"illuminate/collections": "^10.4",
23-
"illuminate/config": "^10.4",
24-
"illuminate/console": "^10.4",
25-
"illuminate/container": "^10.4",
26-
"illuminate/contracts": "^10.4",
27-
"illuminate/events": "^10.4",
28-
"illuminate/filesystem": "^10.4",
29-
"illuminate/process": "^10.4",
30-
"illuminate/support": "^10.4",
31-
"illuminate/testing": "^10.4",
21+
"illuminate/cache": "^10.4.1",
22+
"illuminate/collections": "^10.4.1",
23+
"illuminate/config": "^10.4.1",
24+
"illuminate/console": "^10.4.1",
25+
"illuminate/container": "^10.4.1",
26+
"illuminate/contracts": "^10.4.1",
27+
"illuminate/events": "^10.4.1",
28+
"illuminate/filesystem": "^10.4.1",
29+
"illuminate/process": "^10.4.1",
30+
"illuminate/support": "^10.4.1",
31+
"illuminate/testing": "^10.4.1",
3232
"laravel-zero/foundation": "^10.0",
3333
"league/flysystem": "^3.12.3",
3434
"nunomaduro/collision": "^6.4.0|^7.2.0",
@@ -47,20 +47,21 @@
4747
},
4848
"require-dev": {
4949
"guzzlehttp/guzzle": "^7.5",
50-
"illuminate/bus": "^10.4",
51-
"illuminate/database": "^10.4",
52-
"illuminate/http": "^10.4",
53-
"illuminate/log": "^10.4",
54-
"illuminate/queue": "^10.4",
55-
"illuminate/redis": "^10.4",
56-
"illuminate/view": "^10.4",
50+
"illuminate/bus": "^10.4.1",
51+
"illuminate/database": "^10.4.1",
52+
"illuminate/http": "^10.4.1",
53+
"illuminate/log": "^10.4.1",
54+
"illuminate/queue": "^10.4.1",
55+
"illuminate/redis": "^10.4.1",
56+
"illuminate/view": "^10.4.1",
5757
"laminas/laminas-text": "^2.10",
5858
"laravel-zero/phar-updater": "^1.3",
5959
"laravel/pint": "^1.6",
6060
"nunomaduro/laravel-console-dusk": "^1.11.0",
6161
"nunomaduro/laravel-console-menu": "^3.4.0",
6262
"nunomaduro/termwind": "^1.15.1",
63-
"pestphp/pest": "^1.22.5",
63+
"pestphp/pest": "^2.0.2",
64+
"pestphp/pest-plugin-laravel": "^2.0",
6465
"phpstan/phpstan": "^1.10.7"
6566
},
6667
"autoload": {

phpunit.xml.dist

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
backupGlobals="false"
44
beStrictAboutTestsThatDoNotTestAnything="true"
55
beStrictAboutOutputDuringTests="true"
66
bootstrap="vendor/autoload.php"
77
colors="true"
8-
convertErrorsToExceptions="true"
9-
convertNoticesToExceptions="true"
10-
convertWarningsToExceptions="true"
118
failOnRisky="true"
129
failOnWarning="true"
1310
processIsolation="false"
1411
stopOnError="false"
1512
stopOnFailure="false"
16-
verbose="true"
17-
>
13+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
14+
cacheDirectory=".phpunit.cache"
15+
backupStaticProperties="false">
1816
<testsuites>
1917
<testsuite name="">
2018
<directory suffix="Test.php">./tests</directory>
2119
</testsuite>
2220
</testsuites>
23-
<coverage processUncoveredFiles="true">
21+
<coverage>
2422
<include>
2523
<directory suffix=".php">src</directory>
2624
</include>

tests/Components/DatabaseInstallTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@
1616
$composerMock = $this->createMock(ComposerContract::class);
1717

1818
$composerMock->expects($this->exactly(2))
19-
->method('require')
20-
->withConsecutive(
21-
['illuminate/database "^10.0"', false],
22-
['fakerphp/faker "^1.9.1"', true]
23-
);
19+
->method('require');
2420

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

tests/Components/HttpComponentTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010
$composerMock = $this->createMock(ComposerContract::class);
1111

1212
$composerMock->expects($this->exactly(2))
13-
->method('require')
14-
->withConsecutive(
15-
[$this->equalTo('guzzlehttp/guzzle "^7.5"')],
16-
[$this->equalTo('illuminate/http "^10.0"')]
17-
);
13+
->method('require');
1814

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

tests/Components/PestComponentTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414
collect(
1515
[
1616
\Pest\Laravel\Commands\PestDatasetCommand::class,
17-
\Pest\Laravel\Commands\PestInstallCommand::class,
1817
\Pest\Laravel\Commands\PestTestCommand::class,
1918
]
2019
)->map(
21-
fn ($commandClass) => expect($commands)->toHaveKey($commandClass)
20+
fn ($commandClass) => expect($commands->toArray())->toHaveKey($commandClass)
2221
);
2322
});

tests/Components/ViewInstallTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
$composerMock = $this->createMock(ComposerContract::class);
1717

1818
$composerMock->expects($this->exactly(1))
19-
->method('require')
20-
->withConsecutive(
21-
['illuminate/view "^10.0"', false],
22-
);
19+
->method('require');
2320

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

0 commit comments

Comments
 (0)