Skip to content

Commit

Permalink
[11.x] Fixes changes to application skeleton (#49425)
Browse files Browse the repository at this point in the history
* [11.x] Fixes changes to application skeleton

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* Apply fixes from StyleCI

---------

Signed-off-by: Mior Muhammad Zaki <[email protected]>
Co-authored-by: StyleCI Bot <[email protected]>
  • Loading branch information
crynobone and StyleCIBot authored Dec 19, 2023
1 parent 631e418 commit 67022e6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Queue/Console/FailedTableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected function migrationExists($table)
return count($this->files->glob(sprintf(
'{%s,%s}',
$this->laravel->joinPaths($this->laravel->databasePath('migrations'), '*_*_*_*_create_'.$table.'_table.php'),
$this->laravel->joinPaths($this->laravel->databasePath('migrations'), '0001_01_01_000003_create_jobs_table.php'),
$this->laravel->joinPaths($this->laravel->databasePath('migrations'), '0001_01_01_000002_create_jobs_table.php'),
))) !== 0;
}
}
2 changes: 1 addition & 1 deletion src/Illuminate/Queue/Console/TableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected function migrationExists($table)
return count($this->files->glob(sprintf(
'{%s,%s}',
$this->laravel->joinPaths($this->laravel->databasePath('migrations'), '*_*_*_*_create_'.$table.'_table.php'),
$this->laravel->joinPaths($this->laravel->databasePath('migrations'), '0001_01_01_000003_create_jobs_table.php'),
$this->laravel->joinPaths($this->laravel->databasePath('migrations'), '0001_01_01_000002_create_jobs_table.php'),
))) !== 0;
}
}
4 changes: 1 addition & 3 deletions tests/Integration/Foundation/Console/AboutCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
namespace Illuminate\Tests\Integration\Foundation\Console;

use Illuminate\Testing\Assert;
use Orchestra\Testbench\Attributes\WithEnv;
use Orchestra\Testbench\TestCase;

use function Orchestra\Testbench\remote;

#[WithEnv('APP_MAINTENANCE_STORE', 'array')]
class AboutCommandTest extends TestCase
{
public function testItCanDisplayAboutCommandAsJson()
Expand Down Expand Up @@ -38,7 +36,7 @@ public function testItCanDisplayAboutCommandAsJson()
'logs' => ['single'],
'mail' => 'smtp',
'queue' => 'database',
'session' => 'database',
'session' => 'cookie',
], $output['drivers']);
});
}
Expand Down
2 changes: 0 additions & 2 deletions tests/Integration/Foundation/MaintenanceModeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Route;
use Orchestra\Testbench\Attributes\WithEnv;
use Orchestra\Testbench\Http\Middleware\PreventRequestsDuringMaintenance as TestbenchPreventRequestsDuringMaintenance;
use Orchestra\Testbench\TestCase;
use Symfony\Component\HttpFoundation\Cookie;

#[WithEnv('APP_MAINTENANCE_DRIVER', 'file')]
class MaintenanceModeTest extends TestCase
{
protected function setUp(): void
Expand Down

0 comments on commit 67022e6

Please sign in to comment.