From 8fd4651ed96931c445fc6fc53be89c69a1a2eee2 Mon Sep 17 00:00:00 2001 From: Christian Giupponi Date: Thu, 30 Aug 2018 17:38:44 +0200 Subject: [PATCH] Add test for default version on module scaffold --- Modules/Workshop/Tests/ModuleScaffoldTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Modules/Workshop/Tests/ModuleScaffoldTest.php b/Modules/Workshop/Tests/ModuleScaffoldTest.php index 1dc6cde17..1707035fa 100644 --- a/Modules/Workshop/Tests/ModuleScaffoldTest.php +++ b/Modules/Workshop/Tests/ModuleScaffoldTest.php @@ -553,6 +553,16 @@ public function it_can_overwrite_stub_files_with_custom_ones() $this->cleanUp(); } + /** @test */ + public function it_add_default_version_on_module_json_file() + { + $this->scaffoldModuleWithEloquent(); + + $moduleFile = $this->getModuleFile(); + + $this->assertEquals('1.0.0', $moduleFile->version); + } + /** * Get the contents of composer.json file * @return string