Skip to content

Commit

Permalink
Update test to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
netpok committed Apr 15, 2021
1 parent d51133b commit c448336
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/Integration/Migration/MigratorTest.php
Expand Up @@ -76,7 +76,7 @@ public function testPretendMigrate()
{
$this->expectOutput('<info>CreatePeopleTable:</info> create table "people" ("id" integer not null primary key autoincrement, "name" varchar not null, "email" varchar not null, "password" varchar not null, "remember_token" varchar, "created_at" datetime, "updated_at" datetime)');
$this->expectOutput('<info>CreatePeopleTable:</info> create unique index "people_email_unique" on "people" ("email")');
$this->expectOutput('<info>2015_10_04_000000_modify_people_table:</info> alter table "people" add column "first_name" varchar');
$this->expectOutput('<info>ModifyPeopleTable:</info> alter table "people" add column "first_name" varchar');
$this->expectOutput('<info>2016_10_04_000000_modify_people_table:</info> alter table "people" add column "last_name" varchar');

$this->subject->run([__DIR__.'/fixtures'], ['pretend' => true]);
Expand Down
Expand Up @@ -4,7 +4,8 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
class ModifyPeopleTable extends Migration
{
/**
* Run the migrations.
*
Expand All @@ -28,4 +29,4 @@ public function down()
$table->dropColumn('first_name');
});
}
};
}

0 comments on commit c448336

Please sign in to comment.