makeTestData(); } public function testQuotaValidRule() { Cache::increment($this->account->key); $this->assertFalse($this->account->emailQuotaExceeded()); } public function testQuotaInValidRule() { Cache::increment($this->account->key, 3000); $this->assertTrue($this->account->emailQuotaExceeded()); } }