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

it_creates_a_migration_based_on_the_generated_model() public method

    public function it_creates_a_migration_based_on_the_generated_model()
    {
        $model = 'Chimp';
        // When I create the following model
        $console = $this->runArtisanCommand(ResourceMakeCommand::class, ['name' => $model]);
        // Then the a migration called yyyy_mm_dd_hhmmss_create_models_table.php is created.
        $expectedFileName = 'date_create_chimps_table.php';
        $this->seeFileWasCreated(database_path('/migrations/' . $expectedFileName));
        $this->seeInConsoleOutput('Created migration date_create_chimps_table.php', $console);
        $this->clearGeneratedFiles($model);
    }