/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
tests/Integration/Support/SupportMaintenanceModeTest.php
38 строк
831 B
Lucas Michot
Move Testbench-based tests to tests/Integration (#61080)
07 авг 2026, 16:42
Не верифицирован
07 авг 2026, 16:42
486d136
Код
Авторство
О чём код?
<?php namespace Illuminate\Tests\Integration\Support; use Illuminate\Contracts\Foundation\MaintenanceMode as MaintenanceModeContract; use Illuminate\Support\Facades\MaintenanceMode; use Orchestra\Testbench\TestCase; class SupportMaintenanceModeTest extends TestCase { public function testExtends() { MaintenanceMode::extend('test', fn () => new TestMaintenanceMode); $this->app->config->set('app.maintenance.driver', 'test'); $this->assertInstanceOf(TestMaintenanceMode::class, $this->app->maintenanceMode()); } } class TestMaintenanceMode implements MaintenanceModeContract { public function activate(array $payload): void { } public function deactivate(): void { } public function active(): bool { } public function data(): array { } }