Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F10813326
ServicesServiceProviderTest.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
ServicesServiceProviderTest.php
View Options
<?php
namespace
Nasqueron\Notifications\Tests\Providers
;
use
Nasqueron\Notifications\Providers\ServicesServiceProvider
;
use
Config
;
class
ServicesServiceProviderTest
extends
TestCase
{
public
function
testType
()
{
$this
->
assertServiceInstanceOf
(
'Nasqueron
\N
otifications
\S
ervices
\S
ervices'
,
'services'
);
}
///
/// Tests specific to this service provider
///
public
function
testWithCredentialsFile
()
{
$services
=
$this
->
app
->
make
(
'services'
);
$this
->
assertGreaterThan
(
0
,
count
(
$services
->
services
));
}
public
function
testWithoutCredentialsFile
()
{
Config
::
set
(
'services.gate.credentials'
,
null
);
$services
=
$this
->
app
->
make
(
'services'
);
$this
->
assertSame
(
0
,
count
(
$services
->
services
));
}
public
function
testWithNontFoundCredentialsFile
()
{
Config
::
set
(
'services.gate.credentials'
,
'notfound.json'
);
$services
=
$this
->
app
->
make
(
'services'
);
$this
->
assertSame
(
0
,
count
(
$services
->
services
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 29, 13:51 (19 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2760172
Default Alt Text
ServicesServiceProviderTest.php (1 KB)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment