/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
tests/Integration/Generators/QueueFailedTableCommandTest.php
23 строки
788 B
Devon Garbalosa
add index for database performance (#60073)
11 май 2026, 22:03
Не верифицирован
11 май 2026, 22:03
5e62640
Код
Авторство
О чём код?
<?php namespace Illuminate\Tests\Integration\Generators; use Illuminate\Queue\Console\FailedTableCommand; class QueueFailedTableCommandTest extends TestCase { public function testCreateMakesMigration() { $this->artisan(FailedTableCommand::class)->assertExitCode(0); $this->assertMigrationFileContains([ 'use Illuminate\Database\Migrations\Migration;', 'return new class extends Migration', 'Schema::create(\'failed_jobs\', function (Blueprint $table) {', '$table->string(\'connection\');', '$table->string(\'queue\');', '$table->index([\'connection\', \'queue\', \'failed_at\']);', 'Schema::dropIfExists(\'failed_jobs\');', ], 'create_failed_jobs_table.php'); } }