From f43fe4e20fb56f8364821ab67e5e1f8705991022 Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Wed, 13 Jan 2021 07:01:08 +0800 Subject: [PATCH] Add ending line break on the model factory stub --- src/stubs/database/factories/model-factory.stub | 2 +- tests/Generators/ModelFactoryGeneratorTest.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/stubs/database/factories/model-factory.stub b/src/stubs/database/factories/model-factory.stub index 304dafd..c4c5caf 100644 --- a/src/stubs/database/factories/model-factory.stub +++ b/src/stubs/database/factories/model-factory.stub @@ -20,4 +20,4 @@ class MasterFactory extends Factory }, ]; } -} \ No newline at end of file +} diff --git a/tests/Generators/ModelFactoryGeneratorTest.php b/tests/Generators/ModelFactoryGeneratorTest.php index eb9e362..19b9e40 100644 --- a/tests/Generators/ModelFactoryGeneratorTest.php +++ b/tests/Generators/ModelFactoryGeneratorTest.php @@ -35,7 +35,8 @@ class {$this->model_name}Factory extends Factory }, ]; } -}"; +} +"; $this->assertEquals($modelFactoryContent, file_get_contents($modelFactoryPath)); } }