Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F10190379
ConfigTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
998 B
Referenced Files
None
Subscribers
None
ConfigTest.php
View Options
<?php
namespace
Nasqueron\Notifications\Tests\Providers
;
use
Config
;
use
File
;
class
ConfigTest
extends
TestCase
{
/**
* The actual list of services providers
*
* @var string[]
*/
private
$providers
;
/**
* The service providers' namespace
*
* @var string
*/
private
$namespace
;
public
function
setUp
()
{
parent
::
setUp
();
$this
->
providers
=
Config
::
get
(
'app.providers'
);
$this
->
namespace
=
$this
->
app
->
getInstance
()->
getNamespace
()
.
'Providers
\\
'
;
}
public
function
testOmittedFiles
()
{
$files
=
File
::
allFiles
(
app_path
(
'Providers'
));
foreach
(
$files
as
$file
)
{
$class
=
$this
->
namespace
.
$file
->
getBasename
(
'.php'
);
$this
->
assertContains
(
$class
,
$this
->
providers
,
"The class $class should be added to config/app.php in the "
.
"providers array."
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jun 26, 05:13 (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2759584
Default Alt Text
ConfigTest.php (998 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment