Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F43793047
EventServiceProviderTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
EventServiceProviderTest.php
View Options
<?php
namespace
AuthGrove\Tests\Providers
;
use
AuthGrove\Tests\TestCase
;
use
Illuminate\Contracts\Events\Dispatcher
;
use
Config
;
use
File
;
class
EventServiceProviderTest
extends
TestCase
{
public
function
testType
()
{
$this
->
assertServiceInstanceOf
(
Dispatcher
::
class
,
'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
Sat, Aug 15, 20:10 (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3931706
Default Alt Text
EventServiceProviderTest.php (1 KB)
Attached To
Mode
rGROVE Auth Grove
Attached
Detach File
Event Timeline
Log In to Comment