|
@@ -8,7 +8,7 @@ discard block |
|
|
block discarded – undo |
|
8
|
8
|
{ |
|
9
|
9
|
public function testLicenseListenerIsOk(): void |
|
10
|
10
|
{ |
|
11
|
|
- $client = self::createClient(['environment' => 'prod'], ['HTTP_AUTHORIZATION' => 'Bearer ' . $this->getTenantJWTCode()]); |
|
|
11
|
+ $client = self::createClient(['environment' => 'prod'], ['HTTP_AUTHORIZATION' => 'Bearer '.$this->getTenantJWTCode()]); |
|
12
|
12
|
|
|
13
|
13
|
$client->request('GET', '/protected/license-route'); |
|
14
|
14
|
$this->assertResponseIsSuccessful(); |
|
@@ -16,7 +16,7 @@ discard block |
|
|
block discarded – undo |
|
16
|
16
|
|
|
17
|
17
|
public function testLicenseListenerFails(): void |
|
18
|
18
|
{ |
|
19
|
|
- $client = self::createClient(['environment' => 'prod'], ['HTTP_AUTHORIZATION' => 'Bearer ' . $this->getTenantJWTCode('not_whitelisted')]); |
|
|
19
|
+ $client = self::createClient(['environment' => 'prod'], ['HTTP_AUTHORIZATION' => 'Bearer '.$this->getTenantJWTCode('not_whitelisted')]); |
|
20
|
20
|
|
|
21
|
21
|
$client->request('GET', '/protected/license-route'); |
|
22
|
22
|
$this->assertResponseRedirects('/protected/unlicensed'); |
|
@@ -24,7 +24,7 @@ discard block |
|
|
block discarded – undo |
|
24
|
24
|
|
|
25
|
25
|
public function testLicenseListenerWorksInDev(): void |
|
26
|
26
|
{ |
|
27
|
|
- $client = self::createClient(['environment' => 'dev'], ['HTTP_AUTHORIZATION' => 'Bearer ' . $this->getTenantJWTCode('not_whitelisted')]); |
|
|
27
|
+ $client = self::createClient(['environment' => 'dev'], ['HTTP_AUTHORIZATION' => 'Bearer '.$this->getTenantJWTCode('not_whitelisted')]); |
|
28
|
28
|
|
|
29
|
29
|
$client->request('GET', '/protected/license-route'); |
|
30
|
30
|
$this->assertResponseIsSuccessful(); |