Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
cdad9b6c
Commit
cdad9b6c
authored
Aug 30, 2018
by
Christian Giupponi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add default version for theme scaffold
parent
8fd4651e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
themeJson.stub
Modules/Workshop/Scaffold/Theme/stubs/themeJson.stub
+2
-1
ThemeScaffoldTest.php
Modules/Workshop/Tests/ThemeScaffoldTest.php
+11
-0
No files found.
Modules/Workshop/Scaffold/Theme/stubs/themeJson.stub
View file @
cdad9b6c
{
"name": "{{theme-name}}",
"description": "",
"type": "{{type}}"
"type": "{{type}}",
"version": "1.0.0"
}
Modules/Workshop/Tests/ThemeScaffoldTest.php
View file @
cdad9b6c
...
...
@@ -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/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"'
));
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment