Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
swoorr committed Jul 28, 2023
1 parent f05b540 commit 37552ab
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/Feature/ApiAuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,9 @@ public function setUp(): void
{
parent::setUp();


// create 10 users
User::factory()->count(10)->create();

$user = User::first();
$user = User::factory()->create();
$this->apiKey = $user->api_key;
$this->secretKey = $user->secret_key;

}

public function test_auth(): void
Expand Down Expand Up @@ -56,6 +51,8 @@ public function test_users_rate_limit(): void

public function test_api_response_data(): void
{
User::factory()->count(9)->create();

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

$response
Expand Down

0 comments on commit 37552ab

Please sign in to comment.