1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 16:44:04 +00:00

Try to fix Call to undef. method Redis::connect()

This commit is contained in:
Samuel Štancl 2019-02-02 12:28:21 +01:00
parent be8968b832
commit 0ca435262b
3 changed files with 3 additions and 4 deletions

View file

@ -8,7 +8,6 @@ branches:
- master - master
install: install:
- travis_retry pecl install redis
- travis_retry composer install --no-interaction - travis_retry composer install --no-interaction
script: vendor/bin/phpunit --coverage-clover=coverage.xml script: vendor/bin/phpunit --coverage-clover=coverage.xml

View file

@ -15,7 +15,7 @@
</testsuites> </testsuites>
<filter> <filter>
<whitelist processUncoveredFilesFromWhitelist="true"> <whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./app</directory> <directory suffix=".php">./src</directory>
</whitelist> </whitelist>
</filter> </filter>
<php> <php>

View file

@ -2,7 +2,7 @@
namespace Stancl\Tenancy\Tests; 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 class TestCase extends \Orchestra\Testbench\TestCase
{ {
@ -15,7 +15,7 @@ class TestCase extends \Orchestra\Testbench\TestCase
{ {
parent::setUp(); parent::setUp();
Redis::connection('tenancy')->flushdb(); LaravelRedis::connection('tenancy')->flushdb();
tenant()->create('phpunit.localhost'); tenant()->create('phpunit.localhost');