Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4793421
FeaturesTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
828 B
Referenced Files
None
Subscribers
None
FeaturesTest.php
View Options
<?php
namespace
Nasqueron\Notifications\Tests
;
use
Nasqueron\Notifications\Features
;
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
Details
Attached
Mime Type
text/x-php
Expires
Fri, Feb 28, 21:45 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2436128
Default Alt Text
FeaturesTest.php (828 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment