mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 18:44:04 +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
|
- 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
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue