public function it_generates_correct_drop_migration_file_content() { $this->artisan('module:make-migration', ['name' => 'drop_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->expectedDropMigrationContent(), $file); }