tests/unit/JWTAuthenticationHandlerTest.php 1 location
|
@@ 22-38 (lines=17) @@
|
19 |
|
|
20 |
|
protected $token; |
21 |
|
|
22 |
|
public function setUp() |
23 |
|
{ |
24 |
|
putenv('JWT_SIGNER_KEY=test_signer'); |
25 |
|
|
26 |
|
parent::setUp(); |
27 |
|
$this->member = $this->objFromFixture(Member::class, 'admin'); |
28 |
|
$createToken = Injector::inst()->get(CreateTokenMutationCreator::class); |
29 |
|
|
30 |
|
$response = $createToken->resolve( |
31 |
|
null, |
32 |
|
['Email' => '[email protected]', 'Password' => 'error'], |
33 |
|
[], |
34 |
|
new ResolveInfo([]) |
35 |
|
); |
36 |
|
|
37 |
|
$this->token = $response->Token; |
38 |
|
} |
39 |
|
|
40 |
|
public function tearDown() |
41 |
|
{ |
tests/unit/JWTAuthenticatorTest.php 1 location
|
@@ 23-39 (lines=17) @@
|
20 |
|
|
21 |
|
protected $token; |
22 |
|
|
23 |
|
public function setUp() |
24 |
|
{ |
25 |
|
putenv('JWT_SIGNER_KEY=test_signer'); |
26 |
|
|
27 |
|
parent::setUp(); |
28 |
|
$this->member = $this->objFromFixture(Member::class, 'admin'); |
29 |
|
$createToken = Injector::inst()->get(CreateTokenMutationCreator::class); |
30 |
|
|
31 |
|
$response = $createToken->resolve( |
32 |
|
null, |
33 |
|
['Email' => '[email protected]', 'Password' => 'error'], |
34 |
|
[], |
35 |
|
new ResolveInfo([]) |
36 |
|
); |
37 |
|
|
38 |
|
$this->token = $response->Token; |
39 |
|
} |
40 |
|
|
41 |
|
public function tearDown() |
42 |
|
{ |
tests/unit/ValidateTokenQueryCreatorTest.php 1 location
|
@@ 26-42 (lines=17) @@
|
23 |
|
|
24 |
|
protected $token; |
25 |
|
|
26 |
|
public function setUp() |
27 |
|
{ |
28 |
|
putenv('JWT_SIGNER_KEY=test_signer'); |
29 |
|
|
30 |
|
parent::setUp(); |
31 |
|
$this->member = $this->objFromFixture(Member::class, 'admin'); |
32 |
|
$createToken = Injector::inst()->get(CreateTokenMutationCreator::class); |
33 |
|
|
34 |
|
$response = $createToken->resolve( |
35 |
|
null, |
36 |
|
['Email' => '[email protected]', 'Password' => 'error'], |
37 |
|
[], |
38 |
|
new ResolveInfo([]) |
39 |
|
); |
40 |
|
|
41 |
|
$this->token = $response->Token; |
42 |
|
} |
43 |
|
|
44 |
|
public function tearDown() |
45 |
|
{ |