Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F41923865
DatabaseShellTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
631 B
Referenced Files
None
Subscribers
None
DatabaseShellTest.php
View Options
<?php
/**
* Test authentication views with GET request and form title checks.
*
* A test failure means an auth view is broken.
*/
class
DatabaseShellTest
extends
TestCase
{
/**
* Runs the command
*/
private
function
runCommand
()
{
Artisan
::
call
(
'db:shell'
,
[]);
}
/**
* @expectedException LogicException
*/
function
testLogicExceptionIsThrownWhenEngineIsUnknown
()
{
$formerEngine
=
Config
::
get
(
'database.default'
);
Config
::
set
(
'database.default'
,
'unknownsql'
);
$this
->
runCommand
();
Config
::
set
(
'database.default'
,
$formerEngine
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Aug 8, 03:05 (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3928617
Default Alt Text
DatabaseShellTest.php (631 B)
Attached To
Mode
rGROVE Auth Grove
Attached
Detach File
Event Timeline
Log In to Comment