Commit 65fb918
Convert test suite from PHPUnit to Pest (#2912)
* Convert test suite from PHPUnit to Pest
- Replace phpunit/phpunit with pestphp/pest and pestphp/pest-plugin-laravel
- Convert all 26 test files from class-based PHPUnit to Pest functional syntax
- Use Pest expectations (expect()) instead of PHPUnit assertions
- Create TestCase subclasses for files needing pre-setUp properties
- Add tests/Pest.php and tests/ContentPolicy.php
- Update GitHub Actions workflows to use vendor/bin/pest
- 599 tests, 1463 assertions all passing
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix CI: add pest-plugin to allow-plugins, drop PHP 8.0/8.1 and Laravel 8/9 from matrix
Pest v3 requires PHP ^8.2 and pest-plugin-laravel requires Laravel ^10+,
so these older combinations cannot be tested with Pest.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Reorganize test suite into subdirectories and simplify TestCase by replacing subclasses with setup methods
* Fix styling
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: freekmurze <483853+freekmurze@users.noreply.github.com>1 parent e2cad43 commit 65fb918
89 files changed
Lines changed: 8449 additions & 6903 deletions
File tree
- .github/workflows
- src
- tests
- Commands
- Integration
- Middleware
- Models
- TestModels
- TestSupport
- TestModels
- resources/views
- Traits
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 22 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 23 | | |
32 | 24 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 25 | | |
40 | 26 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 27 | | |
50 | 28 | | |
51 | 29 | | |
| |||
60 | 38 | | |
61 | 39 | | |
62 | 40 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 41 | | |
68 | 42 | | |
69 | 43 | | |
70 | 44 | | |
71 | 45 | | |
72 | 46 | | |
73 | | - | |
| 47 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| |||
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
67 | | - | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
6 | | - | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| |||
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
17 | | - | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
27 | | - | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
0 commit comments