Skip to content

Commit

Permalink
FIX Fix NavigateCommandTest and don't try to write null (#11412)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Oct 1, 2024
1 parent 27708c7 commit aa2b8c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Cli/Command/NavigateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

// Handle request and output resonse body
$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
$responseCode = $response->getStatusCode();
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Cli/Command/NavigateCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class NavigateCommandTest extends SapphireTest
{
protected $usesDatabase = false;
protected $usesDatabase = true;

public static function provideExecute(): array
{
Expand Down

0 comments on commit aa2b8c3

Please sign in to comment.