Skip to content

Commit

Permalink
update type
Browse files Browse the repository at this point in the history
  • Loading branch information
swoorr committed Jul 28, 2023
1 parent 8c5b5be commit 343eaf5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/Feature/ApiAuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

class ApiAuthenticationTest extends TestCase
{
private $apiKey = null;
private $secretKey = null;
private mixed $apiKey = null;
private mixed $secretKey = null;

public function setUp(): void
{
Expand All @@ -17,7 +17,6 @@ public function setUp(): void
$user = User::factory()->create();
$this->apiKey = $user->api_key;
$this->secretKey = $user->secret_key;

}


Expand All @@ -26,8 +25,6 @@ public function setUp(): void
*/
public function test_auth(): void
{


$response = $this->postJson('/api/authenticate', ['api_key' => $this->apiKey, 'secret_key' => $this->secretKey]);

$response
Expand All @@ -40,10 +37,8 @@ public function test_auth(): void

public function test_users(): void
{

$response = $this->post('/api/app/users', data: [], headers: ['api_key' => $this->apiKey, 'secret_key' => $this->secretKey]);


$response
->assertStatus(200)
->assertJson([
Expand Down

0 comments on commit 343eaf5

Please sign in to comment.