/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
tests/Support/SupportCapsuleManagerTraitTest.php
36 строк
983 B
Jason McCreary
[13.x] Mockery cleanup (#61117)
10 авг 2026, 20:23
Не верифицирован
10 авг 2026, 20:23
2ee40ee
Код
Авторство
О чём код?
<?php namespace Illuminate\Tests\Support; use Illuminate\Config\Repository; use Illuminate\Container\Container; use Illuminate\Support\Fluent; use Illuminate\Support\Traits\CapsuleManagerTrait; use Mockery; use PHPUnit\Framework\TestCase; class SupportCapsuleManagerTraitTest extends TestCase { use CapsuleManagerTrait; public function testSetupContainerForCapsule() { $this->container = null; $app = new Container; $this->setupContainer($app); $this->assertEquals($app, $this->getContainer()); $this->assertInstanceOf(Fluent::class, $app['config']); } public function testSetupContainerForCapsuleWhenConfigIsBound() { $this->container = null; $app = new Container; $app['config'] = Mockery::mock(Repository::class); $this->setupContainer($app); $this->assertEquals($app, $this->getContainer()); $this->assertInstanceOf(Repository::class, $app['config']); } }