From 097bad0733e00c1f1c1e66b1c64498c2e52a04a7 Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 25 Apr 2023 08:47:45 -0500 Subject: [PATCH] laravel 10 compat --- composer.json | 10 +++++----- tests/WordpressMaintenanceUpTest.php | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 34e2afe..b7f16f2 100644 --- a/composer.json +++ b/composer.json @@ -12,14 +12,14 @@ } ], "require": { - "php": "^8.0", - "illuminate/support": "^9.0", - "illuminate/console": "^9.0", - "illuminate/filesystem": "^9.0" + "php": "^8.1", + "illuminate/support": "^10.0", + "illuminate/console": "^10.0", + "illuminate/filesystem": "^10.0" }, "require-dev": { "phpunit/phpunit" : "^9.5", - "orchestra/testbench": "^7.0", + "orchestra/testbench": "^8.0", "mockery/mockery": "~1", "fakerphp/faker": "^1.9.2" }, diff --git a/tests/WordpressMaintenanceUpTest.php b/tests/WordpressMaintenanceUpTest.php index e779a4e..86b0373 100644 --- a/tests/WordpressMaintenanceUpTest.php +++ b/tests/WordpressMaintenanceUpTest.php @@ -26,7 +26,7 @@ public function it_has_a_up_command_removes_maintenance_file() $filename = '.'.$this->faker->uuid; $this->artisan('wp:down', ['--file' => $filename]); $this->artisan('wp:up', ['--file' => $filename]); - $this->assertFileNotExists($this->getPublicPath() . '/'. $filename); + $this->assertFileDoesNotExist($this->getPublicPath() . '/'. $filename); } @@ -37,7 +37,7 @@ public function it_has_removed_the_down_file_without_parameter() { $this->artisan('wp:down', []); $this->artisan('wp:up', []); - $this->assertFileNotExists($this->getPublicPath() . '/.maintenance'); + $this->assertFileDoesNotExist($this->getPublicPath() . '/.maintenance'); } /**