summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBrandon Clothier <brandon14125@gmail.com>2018-07-15 01:24:10 +0300
committerBrandon Clothier <brandon14125@gmail.com>2018-07-15 01:24:10 +0300
commit48b264f564c2322f4932da0d391fa98331ebc158 (patch)
tree7c91d9466de3970a9f3b0c914aac9afc7dd73e2b /test
parenta7b3f310d3c1e5306332dd15401efb9631c76bed (diff)
Fix error in laravel_version when artisan is not present
Diffstat (limited to 'test')
-rwxr-xr-xtest/segments/laravel_version.spec9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/segments/laravel_version.spec b/test/segments/laravel_version.spec
index 40b130d2..6133b19a 100755
--- a/test/segments/laravel_version.spec
+++ b/test/segments/laravel_version.spec
@@ -14,16 +14,17 @@ function setUp() {
function mockLaravelVersion() {
case "$1" in
"artisan")
- echo "Laravel Framework version 5.4.23"
+ # artisan --version follows the format Laravel Framework <version>
+ echo "Laravel Framework 5.4.23"
;;
default)
esac
}
function mockNoLaravelVersion() {
- # This should output some error
- >&2 echo "Artisan not available"
- return 1
+ # When php can't find a file it will output a message
+ echo "Could not open input file: artisan"
+ return 0
}
function testLaravelVersionSegment() {