Fix test when CLI output viewport is too narrow

This commit is contained in:
Alejandro Celaya
2023-04-12 18:36:28 +02:00
parent 556520583a
commit ef075fb0ce
2 changed files with 6 additions and 5 deletions

View File

@@ -69,7 +69,7 @@ class CreateShortUrlCommandTest extends TestCase
self::assertEquals(ExitCodes::EXIT_SUCCESS, $this->commandTester->getStatusCode());
self::assertStringContainsString('stringified_short_url', $output);
self::assertStringNotContainsString('but the real-time updates cannot be notified', $output);
self::assertStringNotContainsString('but the real-time updates cannot', $output);
}
#[Test]
@@ -195,11 +195,11 @@ class CreateShortUrlCommandTest extends TestCase
public static function provideDispatchBehavior(): iterable
{
$containsAssertion = static fn (string $output) => self::assertStringContainsString(
'but the real-time updates cannot be notified',
'but the real-time updates cannot',
$output,
);
$doesNotContainAssertion = static fn (string $output) => self::assertStringNotContainsString(
'but the real-time updates cannot be notified',
'but the real-time updates cannot',
$output,
);