From 350ff2f7871e919d155c25a555404f2e23b3f4c3 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 9 Mar 2023 16:01:34 +1100 Subject: [PATCH] Fixes for tests --- tests/Feature/Account/AccountEmailQuotaTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Feature/Account/AccountEmailQuotaTest.php b/tests/Feature/Account/AccountEmailQuotaTest.php index 0ddd3142a3c5..fa70035d97bd 100644 --- a/tests/Feature/Account/AccountEmailQuotaTest.php +++ b/tests/Feature/Account/AccountEmailQuotaTest.php @@ -78,16 +78,16 @@ class AccountEmailQuotaTest extends TestCase $account->save(); - Cache::put($account->key, 3000); + Cache::put("email_quota".$account->key, 3000); $this->assertFalse($account->isPaid()); $this->assertTrue(Ninja::isNinja()); $this->assertEquals(20, $account->getDailyEmailLimit()); - $this->assertEquals(3000, Cache::get($account->key)); + $this->assertEquals(3000, Cache::get("email_quota".$account->key)); $this->assertTrue($account->emailQuotaExceeded()); - Cache::forget('123ifyouknowwhatimean'); + Cache::forget("email_quota".'123ifyouknowwhatimean'); } public function testQuotaValidRule() @@ -104,11 +104,11 @@ class AccountEmailQuotaTest extends TestCase $account->num_users = 3; $account->save(); - Cache::increment($account->key); + Cache::increment("email_quota".$account->key); $this->assertFalse($account->emailQuotaExceeded()); - Cache::forget('123ifyouknowwhatimean'); + Cache::forget("email_quota".'123ifyouknowwhatimean'); } public function testEmailSentCount() @@ -132,6 +132,6 @@ class AccountEmailQuotaTest extends TestCase $this->assertEquals(3000, $count); - Cache::forget('123ifyouknowwhatimean'); + Cache::forget("email_quota".'123ifyouknowwhatimean'); } }