artisan('make:crud', ['name' => $this->modelName, '--no-interaction' => true]); $migrationFilePath = database_path('migrations/'.date('Y_m_d_His').'_create_'.$this->tableName.'_table.php'); $this->assertFileExists($migrationFilePath); $modelClassContent = "increments('id'); \$table->string('name', 60); \$table->string('description')->nullable(); \$table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('items'); } } "; $this->assertEquals($modelClassContent, file_get_contents($migrationFilePath)); } }