update api key
This commit is contained in:
@@ -102,7 +102,7 @@ class ApiKeyTest extends TestCase
|
||||
});
|
||||
}
|
||||
|
||||
public function test_find_by_plain_key_excludes_disabled_key(): void
|
||||
public function test_find_by_plain_key_returns_disabled_key(): void
|
||||
{
|
||||
$this->runInCoroutine(function (): void {
|
||||
$user = $this->createTestUser();
|
||||
@@ -112,7 +112,8 @@ class ApiKeyTest extends TestCase
|
||||
$result['api_key']->save();
|
||||
|
||||
$found = ApiKey::findByPlainKey($result['plain_key']);
|
||||
$this->assertNull($found);
|
||||
$this->assertNotNull($found);
|
||||
$this->assertFalse($found->enabled);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user