Skip to content

Commit

Permalink
test: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-veltrup committed May 17, 2024
1 parent e0f6cc5 commit f4a2f91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Service/Search/ExternalResourceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private function getField(
string $name,
string $default = ''
): string {
$value = $document->getFields()[$name];
$value = $document->getFields()[$name] ?? null;
if ($value === null) {
return $default;
}
Expand Down
9 changes: 2 additions & 7 deletions test/Console/Command/IndexerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,20 +142,15 @@ public function testExecuteWithoutIndexer(): void

// the output of the command in the console
$output = $commandTester->getDisplay();
// phpcs:disable
$this->assertEquals(
<<<EOF
Channel: WWW
============
[ERROR] No indexer available
[ERROR] No indexer available
EOF,
$output
trim($output)
);
// phpcs:enable
}
public function testExecuteSelectIndexer(): void
{
Expand Down

0 comments on commit f4a2f91

Please sign in to comment.