@@ -31,22 +31,22 @@ public function testInitBundle()
31
31
$ kernel ->addConfigFile (__DIR__ . '/Resources/config/default.yaml ' );
32
32
$ this ->bootKernel ();
33
33
34
- $ this -> assertServiceExists ('async_aws.client.s3 ' , S3Client::class);
35
- $ this -> assertServiceExists ('async_aws.client.sqs ' , SqsClient::class);
36
- $ this -> assertServiceExists ('async_aws.client.ses ' , SesClient::class);
37
- $ this -> assertServiceExists ('async_aws.client.foobar ' , SqsClient::class);
38
- $ this -> assertServiceExists ('async_aws.client.secret ' , SsmClient::class);
34
+ self :: assertServiceExists ('async_aws.client.s3 ' , S3Client::class);
35
+ self :: assertServiceExists ('async_aws.client.sqs ' , SqsClient::class);
36
+ self :: assertServiceExists ('async_aws.client.ses ' , SesClient::class);
37
+ self :: assertServiceExists ('async_aws.client.foobar ' , SqsClient::class);
38
+ self :: assertServiceExists ('async_aws.client.secret ' , SsmClient::class);
39
39
40
40
// Test autowired clients
41
- $ this -> assertServiceExists (S3Client::class, S3Client::class);
42
- $ this -> assertServiceExists (SqsClient::class, SqsClient::class);
43
- $ this -> assertServiceExists (SesClient::class, SesClient::class);
41
+ self :: assertServiceExists (S3Client::class, S3Client::class);
42
+ self :: assertServiceExists (SqsClient::class, SqsClient::class);
43
+ self :: assertServiceExists (SesClient::class, SesClient::class);
44
44
45
45
// Test autowire by name
46
- $ this -> assertServiceExists (SqsClient::class . ' $foobar ' , SqsClient::class);
46
+ self :: assertServiceExists (SqsClient::class . ' $foobar ' , SqsClient::class);
47
47
48
48
// Test secret
49
- $ this -> assertServiceExists (SsmVault::class, SsmVault::class);
49
+ self :: assertServiceExists (SsmVault::class, SsmVault::class);
50
50
51
51
$ container = $ this ->getContainer ();
52
52
self ::assertFalse ($ container ->has (SqsClient::class . ' $notFound ' ));
@@ -59,14 +59,14 @@ public function testEmptyConfig()
59
59
$ kernel ->addConfigFile (__DIR__ . '/Resources/config/empty.yaml ' );
60
60
$ this ->bootKernel ();
61
61
62
- $ this -> assertServiceExists ('async_aws.client.s3 ' , S3Client::class);
63
- $ this -> assertServiceExists ('async_aws.client.sqs ' , SqsClient::class);
64
- $ this -> assertServiceExists ('async_aws.client.ses ' , SesClient::class);
62
+ self :: assertServiceExists ('async_aws.client.s3 ' , S3Client::class);
63
+ self :: assertServiceExists ('async_aws.client.sqs ' , SqsClient::class);
64
+ self :: assertServiceExists ('async_aws.client.ses ' , SesClient::class);
65
65
66
66
// Test autowired clients
67
- $ this -> assertServiceExists (S3Client::class, S3Client::class);
68
- $ this -> assertServiceExists (SqsClient::class, SqsClient::class);
69
- $ this -> assertServiceExists (SesClient::class, SesClient::class);
67
+ self :: assertServiceExists (S3Client::class, S3Client::class);
68
+ self :: assertServiceExists (SqsClient::class, SqsClient::class);
69
+ self :: assertServiceExists (SesClient::class, SesClient::class);
70
70
}
71
71
72
72
public function testNotRegisterServices ()
0 commit comments