PHP Класс DrawMyAttention\ResourceGenerator\Commands\ResourceGeneratorTest

Наследование: extends Orchestra\Testbench\TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
it_accepts_attributes_which_are_saved_to_the_model ( )
it_adds_all_of_the_attributes_that_were_provided_as_columns_in_the_migration ( )
it_adds_attributes_that_are_tagged_as_fillable_to_the_fillable_attributes_array ( )
it_adds_attributes_that_are_tagged_as_hidden_to_the_hidden_attributes_array ( )
it_adds_routes_to_the_existing_routes_file ( )
it_builds_table_columns_based_on_attributes ( )
it_converts_a_php_array_to_a_string_representation_that_can_be_used_to_inject_to_a_template ( )
it_creates_a_migration_based_on_the_generated_model ( )
it_creates_a_model_factory ( )
it_creates_a_model_that_can_be_instantiated ( )
it_creates_a_model_with_the_correct_class_name ( )
it_creates_a_new_controller_for_the_model ( )
it_creates_the_correct_table_in_the_migration ( )
it_does_not_overwrite_an_existing_model ( )
it_generates_a_new_model ( )
it_names_the_migration_correctly ( )
it_splits_a_pipe_separated_list_of_attributes_to_an_array_of_attributes ( )
removeCreatedFile ( $filename )
removeWhiteSpace ( $text )
runArtisanCommand ( $class, array $parameters = [] ) : Symfony\Component\Console\Tester\CommandTester
seeFileWasCreated ( $filename )
seeInConsoleOutput ( $text, $console )
seeInFile ( $text, $file )

Защищенные методы

Метод Описание
getPackageProviders ( Illuminate\Foundation\Application $app ) : array Get package service providers.

Приватные методы

Метод Описание
clearGeneratedFiles ( $class )
createClassInstance ( $model ) : mixed
resetModelFactories ( )
resetRoutes ( )

Описание методов

getPackageProviders() защищенный Метод

Get package service providers.
protected getPackageProviders ( Illuminate\Foundation\Application $app ) : array
$app Illuminate\Foundation\Application
Результат array

it_accepts_attributes_which_are_saved_to_the_model() публичный Метод

it_adds_all_of_the_attributes_that_were_provided_as_columns_in_the_migration() публичный Метод

it_adds_attributes_that_are_tagged_as_fillable_to_the_fillable_attributes_array() публичный Метод

it_adds_attributes_that_are_tagged_as_hidden_to_the_hidden_attributes_array() публичный Метод

it_adds_routes_to_the_existing_routes_file() публичный Метод

it_builds_table_columns_based_on_attributes() публичный Метод

it_converts_a_php_array_to_a_string_representation_that_can_be_used_to_inject_to_a_template() публичный Метод

it_creates_a_migration_based_on_the_generated_model() публичный Метод

it_creates_a_model_factory() публичный Метод

it_creates_a_model_that_can_be_instantiated() публичный Метод

it_creates_a_model_with_the_correct_class_name() публичный Метод

it_creates_a_new_controller_for_the_model() публичный Метод

it_creates_the_correct_table_in_the_migration() публичный Метод

it_does_not_overwrite_an_existing_model() публичный Метод

it_generates_a_new_model() публичный Метод

it_names_the_migration_correctly() публичный Метод

it_splits_a_pipe_separated_list_of_attributes_to_an_array_of_attributes() публичный Метод

removeCreatedFile() публичный Метод

public removeCreatedFile ( $filename )

removeWhiteSpace() публичный Метод

public removeWhiteSpace ( $text )

runArtisanCommand() публичный Метод

public runArtisanCommand ( $class, array $parameters = [] ) : Symfony\Component\Console\Tester\CommandTester
$class Command class to be called.
$parameters array
Результат Symfony\Component\Console\Tester\CommandTester

seeFileWasCreated() публичный Метод

public seeFileWasCreated ( $filename )

seeInConsoleOutput() публичный Метод

public seeInConsoleOutput ( $text, $console )

seeInFile() публичный Метод

public seeInFile ( $text, $file )