/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
tests/Integration/Database/EloquentTransactionWithAfterCommitUsingRefreshDatabaseTest.php
39 строк
953 B
Sebastian Cabarcas Berrio
[13.x] Replace @return with @var on docblocks for properties in tests (#60132)
15 май 2026, 17:56
Не верифицирован
15 май 2026, 17:56
3df1513
Код
Авторство
О чём код?
<?php namespace Illuminate\Tests\Integration\Database; use Illuminate\Foundation\Testing\RefreshDatabase; use Orchestra\Testbench\TestCase; class EloquentTransactionWithAfterCommitUsingRefreshDatabaseTest extends TestCase { use EloquentTransactionWithAfterCommitTests; use RefreshDatabase; /** * The current database driver. * * @var string */ protected $driver; /** {@inheritDoc} */ protected function setUp(): void { $this->beforeApplicationDestroyed(function () { foreach (array_keys($this->app['db']->getConnections()) as $name) { $this->app['db']->purge($name); } }); parent::setUp(); } /** {@inheritDoc} */ protected function defineEnvironment($app) { $connection = $app['config']->get('database.default'); $this->driver = $app['config']->get("database.connections.$connection.driver"); } }