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

it_adds_attributes_that_are_tagged_as_hidden_to_the_hidden_attributes_array() public method

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