Browse Source

Add ending line break on the model factory stub

pull/26/head
Nafies Luthfi 5 years ago
parent
commit
f43fe4e20f
  1. 2
      src/stubs/database/factories/model-factory.stub
  2. 3
      tests/Generators/ModelFactoryGeneratorTest.php

2
src/stubs/database/factories/model-factory.stub

@ -20,4 +20,4 @@ class MasterFactory extends Factory
}, },
]; ];
} }
}
}

3
tests/Generators/ModelFactoryGeneratorTest.php

@ -35,7 +35,8 @@ class {$this->model_name}Factory extends Factory
}, },
]; ];
} }
}";
}
";
$this->assertEquals($modelFactoryContent, file_get_contents($modelFactoryPath)); $this->assertEquals($modelFactoryContent, file_get_contents($modelFactoryPath));
} }
} }
Loading…
Cancel
Save