Skip to content

Commit 61698a9

Browse files
committed
[redis] remote duplicated tests.
1 parent 6f5aef7 commit 61698a9

File tree

1 file changed

+2
-33
lines changed

1 file changed

+2
-33
lines changed

Tests/RedisConnectionFactoryTest.php

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
use Enqueue\Redis\RedisContext;
77
use Enqueue\Test\ClassExtensionTrait;
88
use Interop\Queue\PsrConnectionFactory;
9+
use PHPUnit\Framework\TestCase;
910

10-
class RedisConnectionFactoryTest extends \PHPUnit\Framework\TestCase
11+
class RedisConnectionFactoryTest extends TestCase
1112
{
1213
use ClassExtensionTrait;
1314

@@ -16,38 +17,6 @@ public function testShouldImplementConnectionFactoryInterface()
1617
$this->assertClassImplements(PsrConnectionFactory::class, RedisConnectionFactory::class);
1718
}
1819

19-
public function testCouldBeConstructedWithEmptyConfiguration()
20-
{
21-
$factory = new RedisConnectionFactory([]);
22-
23-
$this->assertAttributeEquals([
24-
'host' => null,
25-
'port' => null,
26-
'timeout' => null,
27-
'reserved' => null,
28-
'retry_interval' => null,
29-
'persisted' => false,
30-
'lazy' => true,
31-
'vendor' => 'phpredis',
32-
], 'config', $factory);
33-
}
34-
35-
public function testCouldBeConstructedWithCustomConfiguration()
36-
{
37-
$factory = new RedisConnectionFactory(['host' => 'theCustomHost']);
38-
39-
$this->assertAttributeEquals([
40-
'host' => 'theCustomHost',
41-
'port' => null,
42-
'timeout' => null,
43-
'reserved' => null,
44-
'retry_interval' => null,
45-
'persisted' => false,
46-
'lazy' => true,
47-
'vendor' => 'phpredis',
48-
], 'config', $factory);
49-
}
50-
5120
public function testShouldCreateLazyContext()
5221
{
5322
$factory = new RedisConnectionFactory(['lazy' => true]);

0 commit comments

Comments
 (0)