Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Yeray Santana Hualde
syncEnrollments
Commits
a351e91a
Commit
a351e91a
authored
Jan 27, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix testing of the core.
parent
f44c565e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
runner.php
laravel/cli/tasks/test/runner.php
+0
-10
phpunit.php
phpunit.php
+16
-0
No files found.
laravel/cli/tasks/test/runner.php
View file @
a351e91a
...
...
@@ -35,16 +35,6 @@ class Runner extends Task {
$path
=
$GLOBALS
[
'BUNDLE_PATH'
]
.
'laravel-tests/'
;
// When testing the framework, we will swap out the application
// and other core paths to stub out the application portion of
// the framework for testing. This allows us to create dummy
// controllers, views, models, etc.
$GLOBALS
[
'APP_PATH'
]
=
$path
.
'application'
.
DS
;
$GLOBALS
[
'BUNDLE_PATH'
]
=
$path
.
'bundles'
.
DS
;
$GLOBALS
[
'STORAGE_PATH'
]
=
$path
.
'storage'
.
DS
;
$this
->
test
();
}
...
...
phpunit.php
View file @
a351e91a
...
...
@@ -18,6 +18,22 @@ define('DS', DIRECTORY_SEPARATOR);
// --------------------------------------------------------------
require
'paths.php'
;
// --------------------------------------------------------------
// Override the application paths when testing the core.
// --------------------------------------------------------------
$config
=
file_get_contents
(
'phpunit.xml'
);
if
(
strpos
(
$config
,
'laravel-tests'
)
!==
false
)
{
$path
=
$GLOBALS
[
'BUNDLE_PATH'
]
.
'laravel-tests'
.
DS
;
$GLOBALS
[
'APP_PATH'
]
=
$path
.
'application'
.
DS
;
$GLOBALS
[
'BUNDLE_PATH'
]
=
$path
.
'bundles'
.
DS
;
$GLOBALS
[
'STORAGE_PATH'
]
=
$path
.
'storage'
.
DS
;
}
// --------------------------------------------------------------
// Bootstrap the Laravel core.
// --------------------------------------------------------------
...
...
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