DrawMyAttention\ResourceGenerator\Commands\ResourceGeneratorTest::it_adds_all_of_the_attributes_that_were_provided_as_columns_in_the_migration PHP Method

it_adds_all_of_the_attributes_that_were_provided_as_columns_in_the_migration() public method

    public function it_adds_all_of_the_attributes_that_were_provided_as_columns_in_the_migration()
    {
        // Given I have a model named 'Badger'
        $model = 'Badger';
        // When I create a model with the following parameters:
        $this->runArtisanCommand(ResourceMakeCommand::class, ['name' => $model, 'attributes' => 'name:string,100,fillable|age:integer,unsigned,index,hidden|colour:string,nullable,hidden|nickname']);
        // Then I see the migration file contains the following:
        $this->seeInFile(file_get_contents(base_path('tests/stubs/date_create_badgers_table.stub')), database_path('migrations/date_create_badgers_table.php'));
        $this->clearGeneratedFiles($model);
    }