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

it_adds_routes_to_the_existing_routes_file() public method

    public function it_adds_routes_to_the_existing_routes_file()
    {
        // Given I have a model named 'Snake'
        $model = 'Snake';
        // When I create a resource for Snake.
        $this->runArtisanCommand(ResourceMakeCommand::class, ['name' => $model]);
        // Then the App\Http\routes.php file contains new routes for the model.
        $this->seeInFile(file_get_contents(base_path('tests/stubs/routes.stub')), app_path('Http/routes.php'));
        $this->clearGeneratedFiles($model);
    }