Page MenuHomeDevCentral

FeaturesTest.php
No OneTemporary

FeaturesTest.php

<?php
namespace Nasqueron\Notifications\Tests\Config;
use Nasqueron\Notifications\Config\Features;
use Nasqueron\Notifications\Tests\TestCase;
class FeaturesTest extends TestCase {
public function testEnable () {
// Find it (en vain …)
$this->assertNotContains('Quux', Features::getEnabled());
$this->assertFalse(Features::isEnabled('Quux'));
// Enable it
Features::enable('Quux');
$this->assertTrue(Features::isEnabled('Quux'));
$this->assertContains('Quux', Features::getEnabled());
// Disable it
Features::disable('Quux');
$this->assertFalse(Features::isEnabled('Quux'));
// Count it
$this->assertContains('Quux', Features::getAll());
$this->assertContains('Quux', Features::getAvailable());
$this->assertNotContains('Quux', Features::getEnabled());
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Feb 28, 22:47 (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2437465
Default Alt Text
FeaturesTest.php (887 B)

Event Timeline