public function it_creates_the_correct_table_in_the_migration()
{
// Given there is a model called 'Monkey'.
$model = 'Monkey';
// When I generate the migration for the model.
$this->runArtisanCommand(ResourceMakeCommand::class, ['name' => $model]);
// Then the table name should be 'monkeys'.
$migrationFile = date('Y_m_d_his') . '_create_' . strtolower($model) . 's_table.php';
$this->seeInFile('Schema::create(\'monkeys\', function (Blueprint $table) {', database_path('migrations/' . $migrationFile));
$this->seeInFile('Schema::drop(\'monkeys\');', database_path('migrations/' . $migrationFile));
$this->clearGeneratedFiles($model);
}