summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Command
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2020-10-10 00:23:15 +0200
committerBenjamin Brahmer <info@b-brahmer.de>2020-10-10 10:26:12 +0200
commitb46c6df6322e09c05a34acca69403fd4ebd238ba (patch)
tree47182b11d97869304e97f729eacc490bc420d5df /tests/Unit/Command
parenteb382ded61f608a4bb8d52a7a71478e461ca5be7 (diff)
Fix usage of at() in unittests
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'tests/Unit/Command')
-rw-r--r--tests/Unit/Command/ExploreGeneratorTest.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/Unit/Command/ExploreGeneratorTest.php b/tests/Unit/Command/ExploreGeneratorTest.php
index 213633549..4512e206c 100644
--- a/tests/Unit/Command/ExploreGeneratorTest.php
+++ b/tests/Unit/Command/ExploreGeneratorTest.php
@@ -136,13 +136,9 @@ class ExploreGeneratorTest extends TestCase {
->with('votes')
->willReturn(100);
- $this->consoleOutput->expects($this->at(0))
+ $this->consoleOutput->expects($this->exactly(2))
->method('writeln')
- ->with($this->stringContains('<error>'));
-
- $this->consoleOutput->expects($this->at(1))
- ->method('writeln')
- ->with($this->stringContains('Failure'));
+ ->withConsecutive(['<error>Failed to fetch feed info:</error>'], ['Failure']);
self::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);
}