Browse Source

Fix failed test

pull/36/head
Nafies Luthfi 5 years ago
parent
commit
fa601fa4ae
  1. 4
      tests/Generators/ModelGeneratorTest.php

4
tests/Generators/ModelGeneratorTest.php

@ -98,11 +98,11 @@ class Category extends Model
$this->artisan('make:crud', ['name' => $this->model_name, '--no-interaction' => true])
->expectsQuestion('Model file exists, are you sure to generate CRUD files?', true);
$modelPath = app_path('Models/'.$this->model_name.'.php');
$modelPath = app_path($this->model_name.'.php');
$this->assertFileExists($modelPath);
$modelClassContent = "<?php
namespace App\Models;
namespace App;
use Illuminate\Database\Eloquent\Model;

Loading…
Cancel
Save