/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
tests/Integration/Generators/CacheTableCommandTest.php
22 строки
730 B
Taylor Otwell
[11.x] Slim skeleton support (#47309)
28 ноя 2023, 23:26
Не верифицирован
28 ноя 2023, 23:26
1d878cc
Код
Авторство
О чём код?
<?php namespace Illuminate\Tests\Integration\Generators; use Illuminate\Cache\Console\CacheTableCommand; class CacheTableCommandTest extends TestCase { public function testCreateMakesMigration() { $this->artisan(CacheTableCommand::class)->assertExitCode(0); $this->assertMigrationFileContains([ 'use Illuminate\Database\Migrations\Migration;', 'return new class extends Migration', 'Schema::create(\'cache\', function (Blueprint $table) {', 'Schema::create(\'cache_locks\', function (Blueprint $table) {', 'Schema::dropIfExists(\'cache\');', 'Schema::dropIfExists(\'cache_locks\');', ], 'create_cache_table.php'); } }