assertSame(['annually'], ProductBillingCycles::forType('domain')); $this->assertContains('monthly', ProductBillingCycles::forType('vps')); ProductBillingCycles::save(['hosting' => ['monthly', 'annually'], 'domain' => ['annually', 'biennially']]); $this->assertSame(['monthly', 'annually'], ProductBillingCycles::forType('hosting')); $this->assertTrue(ProductBillingCycles::allows('domain', 'biennially')); $this->assertFalse(ProductBillingCycles::allows('hosting', 'quarterly')); $this->assertTrue(ProductBillingCycles::allows('hosting', 'onetime')); } }