Fix bootstrap.php for tests

This commit is contained in:
Daniel Mason 2019-06-02 22:21:42 +12:00
parent d702f498bf
commit 3b4d2e4c1f
6 changed files with 58 additions and 77 deletions

View file

@ -21,8 +21,10 @@ class Resque_Tests_TestCase extends PHPUnit\Framework\TestCase
public function setUp()
{
// Setup redis connection for testing.
$this->redis = new Credis_Client('localhost', '6379');
Resque::setBackend('localhost');
global $redisTestServer;
$this->redis = new Credis_Client($redisTestServer, '6379');
Resque::setBackend($redisTestServer);
$this->redis->flushAll();
}
}