mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Fix NavigateCommandTest and don't try to write null (#11412)
This commit is contained in:
parent
27708c7ebb
commit
aa2b8c380e
@ -27,7 +27,7 @@ class NavigateCommand extends Command
|
|||||||
|
|
||||||
// Handle request and output resonse body
|
// Handle request and output resonse body
|
||||||
$response = $app->handle($request);
|
$response = $app->handle($request);
|
||||||
$output->writeln($response->getBody(), OutputInterface::OUTPUT_RAW);
|
$output->writeln($response->getBody() ?? '', OutputInterface::OUTPUT_RAW);
|
||||||
|
|
||||||
// Transform HTTP status code into sensible exit code
|
// Transform HTTP status code into sensible exit code
|
||||||
$responseCode = $response->getStatusCode();
|
$responseCode = $response->getStatusCode();
|
||||||
|
@ -13,7 +13,7 @@ use Symfony\Component\Console\Output\BufferedOutput;
|
|||||||
|
|
||||||
class NavigateCommandTest extends SapphireTest
|
class NavigateCommandTest extends SapphireTest
|
||||||
{
|
{
|
||||||
protected $usesDatabase = false;
|
protected $usesDatabase = true;
|
||||||
|
|
||||||
public static function provideExecute(): array
|
public static function provideExecute(): array
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user