artisan('make:crud', ['name' => $this->model_name, '--no-interaction' => true]); $modelPath = app_path($this->model_name.'.php'); $this->assertFileExists($modelPath); $modelClassContent = "model_name} extends Model { protected \$fillable = ['name', 'description']; } "; $this->assertEquals($modelClassContent, file_get_contents($modelPath)); } /** @test */ public function it_creates_correct_namespaced_model_class_content() { $this->artisan('make:crud', ['name' => 'Entities/References/Category', '--no-interaction' => true]); $modelPath = app_path('Entities/References/Category.php'); $this->assertFileExists($modelPath); $modelClassContent = "assertEquals($modelClassContent, file_get_contents($modelPath)); } }