mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 14:44:05 +00:00
Try to fix Call to undef. method Redis::connect()
This commit is contained in:
parent
be8968b832
commit
0ca435262b
3 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
</testsuites>
|
||||
<filter>
|
||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||
<directory suffix=".php">./app</directory>
|
||||
<directory suffix=".php">./src</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
<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');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue