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

it_does_not_overwrite_an_existing_model() public method

    public function it_does_not_overwrite_an_existing_model()
    {
        // Given there is an existing model called 'Animal'.
        $this->runArtisanCommand(ResourceMakeCommand::class, ['name' => 'Animal']);
        // And I try to create another model named 'Animal'.
        $console = $this->runArtisanCommand(ResourceMakeCommand::class, ['name' => 'Animal']);
        // Then I see an error
        $this->seeInConsoleOutput('Model already exists!', $console);
        $this->clearGeneratedFiles('Animal');
    }