Skip to content

Commit

Permalink
Add test for default version on module scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
cgiupponi committed Aug 30, 2018
1 parent b610d37 commit 8fd4651
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Modules/Workshop/Tests/ModuleScaffoldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8fd4651

Please sign in to comment.