public function it_generates_correct_add_migration_file_content() { $this->artisan('module:make-migration', ['name' => 'add_something_to_posts_table', 'module' => 'Blog']); $migrations = $this->finder->allFiles($this->modulePath . '/Database/Migrations'); $fileName = $migrations[0]->getRelativePathname(); $file = $this->finder->get($this->modulePath . '/Database/Migrations/' . $fileName); $this->assertEquals($this->expectedAddMigrationContent(), $file); }