/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
tests/Integration/Generators/FactoryMakeCommandTest.php
23 строки
638 B
Mior Muhammad Zaki
[10.x] Test Improvements (#48797)
24 окт 2023, 16:37
Не верифицирован
24 окт 2023, 16:37
6350194
Код
Авторство
О чём код?
<?php namespace Illuminate\Tests\Integration\Generators; class FactoryMakeCommandTest extends TestCase { protected $files = [ 'database/factories/FooFactory.php', ]; public function testItCanGenerateFactoryFile() { $this->artisan('make:factory', ['name' => 'FooFactory']) ->assertExitCode(0); $this->assertFileContains([ 'namespace Database\Factories;', 'use Illuminate\Database\Eloquent\Factories\Factory;', 'class FooFactory extends Factory', 'public function definition()', ], 'database/factories/FooFactory.php'); } }