Commit cdad9b6c authored by Christian Giupponi's avatar Christian Giupponi

Add default version for theme scaffold

parent 8fd4651e
{ {
"name": "{{theme-name}}", "name": "{{theme-name}}",
"description": "", "description": "",
"type": "{{type}}" "type": "{{type}}",
"version": "1.0.0"
} }
...@@ -184,4 +184,15 @@ class ThemeScaffoldTest extends BaseTestCase ...@@ -184,4 +184,15 @@ class ThemeScaffoldTest extends BaseTestCase
$this->assertTrue($this->finder->isFile($this->testThemePath . '/assets/js/.gitignore')); $this->assertTrue($this->finder->isFile($this->testThemePath . '/assets/js/.gitignore'));
$this->assertTrue($this->finder->isFile($this->testThemePath . '/assets/images/.gitignore')); $this->assertTrue($this->finder->isFile($this->testThemePath . '/assets/images/.gitignore'));
} }
/** @test */
public function it_has_default_version_in_theme_json_file()
{
$this->scaffold->setFiles(['themeJson']);
$this->generateFrontendTheme();
$this->assertTrue($this->finder->isFile($this->testThemePath . '/theme.json'));
$this->assertTrue(str_contains($this->finder->get($this->testThemePath . '/theme.json'), '"version": "1.0.0"'));
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment