File tree Expand file tree Collapse file tree 3 files changed +5
-43
lines changed Expand file tree Collapse file tree 3 files changed +5
-43
lines changed Original file line number Diff line number Diff line change 1
- version : ' 3.8'
2
-
3
1
services :
4
-
5
2
rabbitmq :
6
- image : rabbitmq:latest
7
- environment :
8
- RABBITMQ_DEFAULT_USER : guest
9
- RABBITMQ_DEFAULT_PASSWORD : guest
10
- RABBITMQ_DEFAULT_VHOST : /
11
- RABBITMQ_SSL_CACERTFILE : /rootCA.pem
12
- RABBITMQ_SSL_CERTFILE : /rootCA.pem
13
- RABBITMQ_SSL_KEYFILE : /rootCA.key
14
- RABBITMQ_SSL_VERIFY : verify_none
15
- RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT : " false"
16
- volumes :
17
- - " ./tests/files/rootCA.pem:/rootCA.pem:ro"
18
- - " ./tests/files/rootCA.key:/rootCA.key:ro"
3
+ image : rabbitmq:3-management
4
+ container_name : rabbitmq
19
5
ports :
20
- - " 15671:15671"
21
- - " 15672:15672"
22
- - " 5671:5671"
23
- - " 5672:5672"
24
-
25
- rabbitmq-management :
26
- image : rabbitmq:management
27
- environment :
28
- RABBITMQ_DEFAULT_USER : guest
29
- RABBITMQ_DEFAULT_PASSWORD : guest
30
- RABBITMQ_DEFAULT_VHOST : /
31
- RABBITMQ_MANAGEMENT_SSL_CACERTFILE : /rootCA.pem
32
- RABBITMQ_MANAGEMENT_SSL_CERTFILE : /rootCA.pem
33
- RABBITMQ_MANAGEMENT_SSL_KEYFILE : /rootCA.key
34
- RABBITMQ_MANAGEMENT_SSL_VERIFY : verify_none
35
- RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT : " false"
36
- volumes :
37
- - " ./tests/files/rootCA.pem:/rootCA.pem:ro"
38
- - " ./tests/files/rootCA.key:/rootCA.key:ro"
39
- ports :
40
- - " 15671:15671"
41
- - " 15672:15672"
42
- - " 5671:5671"
43
- - " 5672:5672"
6
+ - 5672:5672
7
+ - 15672:15672
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ public function testRabbitMQSize(): void
27
27
$ this ->assertTrue ($ this ->connection ->getConnection ()->channel ()->is_open ());
28
28
29
29
dispatch (new TestJobMock ('Farhad Zand ' ))->onQueue ($ queue );
30
- sleep (1 );
31
30
$ this ->assertEquals (1 , $ this ->connection ->size ($ queue ));
32
31
}
33
32
Original file line number Diff line number Diff line change 10
10
11
11
class UnitTestCase extends BaseTestCase
12
12
{
13
- // use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
13
+ use Mockery \Adapter \Phpunit \MockeryPHPUnitIntegration;
14
14
15
15
protected function getPackageProviders ($ app ): array
16
16
{
@@ -23,7 +23,6 @@ protected function getEnvironmentSetUp($app): void
23
23
{
24
24
$ config = $ this ->loadConfig ();
25
25
26
- //Config::set($config);
27
26
config ()->set ('queue.connections.rabbitmq ' , $ config );
28
27
}
29
28
You can’t perform that action at this time.
0 commit comments