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

it_names_the_migration_correctly() public method

    public function it_names_the_migration_correctly()
    {
        $model = 'Hippo';
        // When I create the following model
        $this->runArtisanCommand(ResourceMakeCommand::class, ['name' => $model]);
        // Then the a migration called yyyy_mm_dd_hhmmss_create_models_table.php is created.
        $migrationFile = date('Y_m_d_his') . '_create_' . strtolower($model) . 's_table.php';
        $expectedClassName = 'Create' . Str::plural($model) . 'Table';
        $this->seeInFile('class ' . $expectedClassName . ' extends Migration', database_path('migrations/' . $migrationFile));
        $this->clearGeneratedFiles($model);
    }