From b8faa6714ae0bd86b11a51c03389bad4ee071d19 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 17 Nov 2018 19:32:31 +0100 Subject: [PATCH] Increased MSI to 65% (for sure this time) --- module/CLI/test/Command/ShortUrl/ListShortUrlsCommandTest.php | 4 ++-- module/Core/src/Exception/ValidationException.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/CLI/test/Command/ShortUrl/ListShortUrlsCommandTest.php b/module/CLI/test/Command/ShortUrl/ListShortUrlsCommandTest.php index bbde52fd..4edd20f8 100644 --- a/module/CLI/test/Command/ShortUrl/ListShortUrlsCommandTest.php +++ b/module/CLI/test/Command/ShortUrl/ListShortUrlsCommandTest.php @@ -82,8 +82,8 @@ class ListShortUrlsCommandTest extends TestCase $data[] = new ShortUrl('url_' . $i); } - $this->shortUrlService->listShortUrls(Argument::cetera())->willReturn(new Paginator(new ArrayAdapter($data))) - ->shouldBeCalledOnce(); + $this->shortUrlService->listShortUrls(1, null, [], null)->willReturn(new Paginator(new ArrayAdapter($data))) + ->shouldBeCalledOnce(); $this->commandTester->setInputs(['n']); $this->commandTester->execute(['command' => 'shortcode:list']); diff --git a/module/Core/src/Exception/ValidationException.php b/module/Core/src/Exception/ValidationException.php index 5220005a..fc362303 100644 --- a/module/Core/src/Exception/ValidationException.php +++ b/module/Core/src/Exception/ValidationException.php @@ -42,7 +42,7 @@ class ValidationException extends RuntimeException * @param \Throwable|null $prev * @return ValidationException */ - public static function fromArray(array $invalidData, Throwable $prev = null): self + private static function fromArray(array $invalidData, Throwable $prev = null): self { return new self( sprintf(