FIX Fix NavigateCommandTest and don't try to write null (#11412)

This commit is contained in:
Guy Sartorelli 2024-10-01 13:51:33 +13:00 committed by GitHub
parent 27708c7ebb
commit aa2b8c380e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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
{ {