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

it_adds_attributes_that_are_tagged_as_fillable_to_the_fillable_attributes_array() public method

    public function it_adds_attributes_that_are_tagged_as_fillable_to_the_fillable_attributes_array()
    {
        $model = 'Penguin';
        // When I create a new model called 'Animal'.
        $this->runArtisanCommand(ResourceMakeCommand::class, ['name' => $model, 'attributes' => 'name:string,100,fillable|age:integer,fillable|colour:string|nickname']);
        // Then the model is created and the model has the correct namespace
        $instance = $this->createClassInstance($model);
        $this->assertEquals(['name', 'age'], $instance->getFillable());
        $this->clearGeneratedFiles($model);
    }