mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for tests
This commit is contained in:
parent
a7c230e3b6
commit
350ff2f787
@ -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');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user