mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Added nullsafe operator to simplify conditions
This commit is contained in:
@@ -160,7 +160,7 @@ class ImportedLinksProcessorTest extends TestCase
|
||||
ImportedShlinkUrl $importedUrl,
|
||||
string $expectedOutput,
|
||||
int $amountOfPersistedVisits,
|
||||
?ShortUrl $foundShortUrl
|
||||
?ShortUrl $foundShortUrl,
|
||||
): void {
|
||||
$findExisting = $this->repo->findOneByImportedUrl(Argument::cetera())->willReturn($foundShortUrl);
|
||||
$ensureUniqueness = $this->shortCodeHelper->ensureShortCodeUniqueness(Argument::cetera())->willReturn(true);
|
||||
|
||||
Reference in New Issue
Block a user