Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4793386
ReportServiceProviderTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
810 B
Referenced Files
None
Subscribers
None
ReportServiceProviderTest.php
View Options
<?php
namespace
Nasqueron\Notifications\Tests\Providers
;
class
ReportServiceProviderTest
extends
TestCase
{
public
function
testType
()
{
$this
->
assertServiceInstanceOf
(
'Nasqueron
\N
otifications
\A
ctions
\A
ctionsReport'
,
'report'
);
}
///
/// Tests specific to this service provider
///
public
function
testEvents
()
{
$dispatcher
=
$this
->
app
->
make
(
'events'
);
$type
=
'Nasqueron
\N
otifications
\E
vents
\R
eportEvent'
;
// Currently, we don't have listener for ReportEvent.
$this
->
assertFalse
(
$dispatcher
->
hasListeners
(
$type
));
// When we resolve an instance of our object in the container, we have.
$this
->
app
->
make
(
'report'
);
$this
->
assertTrue
(
$dispatcher
->
hasListeners
(
$type
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Feb 28, 21:45 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2436257
Default Alt Text
ReportServiceProviderTest.php (810 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment