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

it_creates_a_new_controller_for_the_model() public method

    public function it_creates_a_new_controller_for_the_model()
    {
        // Given I have a model named 'Tiger'
        $model = 'Tiger';
        // When I create a resource for Tiger.
        $this->runArtisanCommand(ResourceMakeCommand::class, ['name' => $model]);
        // Then I see there is a new controller called TigerController.php
        $this->seeFileWasCreated(app_path('Http/Controllers/TigerController.php'));
        // And it contains the following.
        $this->assertEquals(file_get_contents(base_path('tests/stubs/controller.stub')), file_get_contents(app_path('Http/Controllers/TigerController.php')));
        $this->clearGeneratedFiles($model);
    }