From 0ca435262bd5d8b44cab96b7476357e596f23634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sat, 2 Feb 2019 12:28:21 +0100 Subject: [PATCH] Try to fix Call to undef. method Redis::connect() --- .travis.yml | 1 - phpunit.xml | 2 +- tests/TestCase.php | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index d4420de2..07cafa91 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,6 @@ branches: - master install: - - travis_retry pecl install redis - travis_retry composer install --no-interaction script: vendor/bin/phpunit --coverage-clover=coverage.xml diff --git a/phpunit.xml b/phpunit.xml index 2e630c0b..2f3c4b5e 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -15,7 +15,7 @@ - ./app + ./src diff --git a/tests/TestCase.php b/tests/TestCase.php index e411b3a1..9918be45 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -2,7 +2,7 @@ namespace Stancl\Tenancy\Tests; -use Illuminate\Support\Facades\Redis; +use Illuminate\Support\Facades\Redis as LaravelRedis; // https://travis-ci.com/stancl/tenancy/jobs/174861107#L615 class TestCase extends \Orchestra\Testbench\TestCase { @@ -15,7 +15,7 @@ class TestCase extends \Orchestra\Testbench\TestCase { parent::setUp(); - Redis::connection('tenancy')->flushdb(); + LaravelRedis::connection('tenancy')->flushdb(); tenant()->create('phpunit.localhost');