/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
tests/Integration/Encryption/EncryptionTest.php
26 строк
703 B
Mior Muhammad Zaki
[10.x] Test Improvements for Encryption, Events, Filesystem, Foundation, Redis & Session tests (#50686)
21 мар 2024, 11:47
Не верифицирован
21 мар 2024, 11:47
a2d70b5
Код
Авторство
О чём код?
<?php namespace Illuminate\Tests\Integration\Encryption; use Illuminate\Encryption\Encrypter; use Orchestra\Testbench\Attributes\WithConfig; use Orchestra\Testbench\TestCase; use RuntimeException; #[WithConfig('app.key', 'base64:IUHRqAQ99pZ0A1MPjbuv1D6ff3jxv0GIvS2qIW4JNU4=')] class EncryptionTest extends TestCase { public function testEncryptionProviderBind() { $this->assertInstanceOf(Encrypter::class, $this->app->make('encrypter')); } public function testEncryptionWillNotBeInstantiableWhenMissingAppKey() { $this->expectException(RuntimeException::class); $this->app['config']->set('app.key', null); $this->app->make('encrypter'); } }