Skip to content

Commit

Permalink
Upgraded Pest to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
onlime committed Oct 15, 2024
1 parent 169af80 commit c9ccd6b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# CHANGELOG

## [v1.2.x (Unreleased)](https://github.com/onlime/laravel-sql-reporter/compare/v1.2.3...main)
## [v1.2.x (Unreleased)](https://github.com/onlime/laravel-sql-reporter/compare/v1.2.4...main)

- ...
## [v1.2.4 (2024-10-15)](https://github.com/onlime/laravel-sql-reporter/compare/v1.2.3...v1.2.4)

- Upgrade Pest to v3

## [v1.2.3 (2024-09-12)](https://github.com/onlime/laravel-sql-reporter/compare/v1.2.2...v1.2.3)

Expand All @@ -15,7 +17,7 @@
- The `SqlQuery` object is now a `readonly` class, and all the getter methods have been removed. **This is a breaking change.**
- The `SqlQuery` object now includes the unprepared query and bindings.
- Added tests for the reporting mechanism and the `QueryLogWritten` event
- Drops support for 8.1
- Drops support for PHP 8.1

## [v1.2.1 (2024-03-14)](https://github.com/onlime/laravel-sql-reporter/compare/v1.2.0...v1.2.1)

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"illuminate/container": "^10.15|^11.0"
},
"require-dev": {
"laravel/pint": "^1.14",
"laravel/pint": "^1.18",
"mockery/mockery": "^1.0",
"orchestra/testbench": "^8.0|^9.0",
"pestphp/pest": "^2.34"
"pestphp/pest": "^3.0"
},
"autoload": {
"psr-4": {
Expand Down
3 changes: 2 additions & 1 deletion src/Providers/SqlReporterServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Illuminate\Console\Events\CommandFinished;
use Illuminate\Foundation\Http\Events\RequestHandled;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\ServiceProvider;
Expand All @@ -19,7 +20,7 @@ class SqlReporterServiceProvider extends ServiceProvider
*/
public function register(): void
{
$this->config = $this->app->make(Config::class);
$this->config = App::make(Config::class);

$this->mergeConfigFrom($this->configFileLocation(), 'sql-reporter');

Expand Down
2 changes: 2 additions & 0 deletions tests/FeatureTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ protected function tearDown(): void
{
Mockery::close();
Carbon::setTestNow();

parent::tearDown();
}

protected function getPackageProviders($app)
Expand Down

0 comments on commit c9ccd6b

Please sign in to comment.