Skip to content

Commit c85cd50

Browse files
author
farhadzand
committed
remove mongodb driver
1 parent 1714cac commit c85cd50

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.github/workflows/laravel-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@ jobs:
142142
143143
- name: Run tests
144144
working-directory: laravel-app
145-
run: php artisan test
145+
run: php artisan test --testsuite=Feature

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
run: composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update && composer update --${{ matrix.stability }} --prefer-dist --no-interaction
7474

7575
- name: Run PHPUnit tests
76-
run: vendor/bin/phpunit
76+
run: vendor/bin/phpunit -c phpunit.xml tests/
7777

7878
- name: Run PHP Static Analysis
7979
if: ${{ matrix.stability == 'prefer-stable' }}

TESTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ If you prefer to run tests manually within the package directory:
3232

3333
```bash
3434
# Run PHPUnit tests
35-
vendor/bin/phpunit
35+
vendor/bin/phpunit -c phpunit.xml tests/
3636

3737
# Run Laravel Pint code style check
3838
vendor/bin/pint --test
@@ -74,6 +74,7 @@ These workflows run automatically on push to main/master branches, on pull reque
7474

7575
## Notes
7676

77+
- When running PHPUnit tests with PHPUnit 11.x, you must explicitly specify the configuration file with `-c phpunit.xml` and the test directory with `tests/`.
7778
- When running PHPStan, you may need to increase the PHP memory limit if you encounter memory issues.
7879
- For test coverage reports, ensure Xdebug is installed and enabled with coverage mode.
7980
- Tests are run with `XDEBUG_MODE=coverage` to enable coverage reports.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
}
4343
},
4444
"scripts": {
45-
"test": "vendor/bin/phpunit",
45+
"test": "vendor/bin/phpunit -c phpunit.xml tests/",
4646
"analyse": "vendor/bin/phpstan analyse",
4747
"pint": "vendor/bin/pint",
4848
"pint:test": "vendor/bin/pint --test",

0 commit comments

Comments
 (0)