Fix the subtest to actually make enough keys for this to be useful

This commit is contained in:
Dane Everitt 2020-06-25 22:39:45 -07:00
parent a81f6882f7
commit 4a677aebae
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -66,7 +66,7 @@ class ApiKeyControllerTest extends IntegrationTestCase
// Small sub-test to ensure we're always comparing the number of keys to the
// specific logged in account, and not just the total number of keys stored in
// the database.
factory(ApiKey::class)->create([
factory(ApiKey::class)->times(10)->create([
'user_id' => factory(User::class)->create()->id,
'key_type' => ApiKey::TYPE_ACCOUNT,
]);