Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3942443
EventServiceProviderTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1022 B
Referenced Files
None
Subscribers
None
EventServiceProviderTest.php
View Options
<?php
namespace
Nasqueron\Notifications\Tests\Providers
;
use
Config
;
use
File
;
class
EventServiceProviderTest
extends
TestCase
{
public
function
testType
()
{
$this
->
assertServiceInstanceOf
(
'Illuminate
\C
ontracts
\E
vents
\D
ispatcher'
,
'events'
);
}
///
/// Tests specific to this service provider
///
public
function
testOmittedFiles
()
{
$subscribe
=
[];
$namespace
=
$this
->
app
->
getInstance
()->
getNamespace
()
.
'Listeners
\\
'
;
$files
=
File
::
allFiles
(
app_path
(
'Listeners'
));
foreach
(
$files
as
$file
)
{
$class
=
$namespace
.
$file
->
getBasename
(
'.php'
);
$subscribe
[]
=
$class
;
}
$this
->
assertEquals
(
$subscribe
,
Config
::
get
(
'app.listeners'
),
'The files in the app/Listeners folder and the array of classes '
.
'defined in config/app.php at listeners key diverge.'
,
0.0
,
10
,
true
// delta, maxDepth, canonicalize
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Dec 26, 16:26 (8 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2315192
Default Alt Text
EventServiceProviderTest.php (1022 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment