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

it_creates_a_model_that_can_be_instantiated() public method

    public function it_creates_a_model_that_can_be_instantiated()
    {
        $model = 'Animal';
        // When I create a new model called 'Animal'.
        $this->runArtisanCommand(ResourceMakeCommand::class, ['name' => $model]);
        // Then I can instantiate the created Animal model
        $class = 'App\\' . $model;
        $this->assertInstanceOf('App\\Animal', new $class());
        $this->clearGeneratedFiles($model);
    }