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
b5009b3f
Unverified
Commit
b5009b3f
authored
Jul 10, 2017
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Testing the feature of overwriting stub views.
parent
b65b7a11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
ModuleScaffoldTest.php
Modules/Workshop/Tests/ModuleScaffoldTest.php
+15
-0
No files found.
Modules/Workshop/Tests/ModuleScaffoldTest.php
View file @
b5009b3f
...
@@ -488,6 +488,21 @@ class ModuleScaffoldTest extends BaseTestCase
...
@@ -488,6 +488,21 @@ class ModuleScaffoldTest extends BaseTestCase
$this
->
cleanUp
();
$this
->
cleanUp
();
}
}
/** @test */
public
function
it_can_overwrite_stub_files_with_custom_ones
()
{
config
()
->
set
(
'asgard.workshop.config.custom-stubs-folder'
,
__DIR__
.
'/stubs'
);
$this
->
scaffoldModuleWithEloquent
();
$path
=
$this
->
testModulePath
.
'/Http/backendRoutes.php'
;
$file
=
$this
->
finder
->
get
(
$path
);
$this
->
assertTrue
(
$this
->
finder
->
isFile
(
$path
));
$this
->
assertContains
(
'overwritten by custom config'
,
$file
);
$this
->
cleanUp
();
}
/**
/**
* Get the contents of composer.json file
* Get the contents of composer.json file
* @return string
* @return string
...
...
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