From 9e88b644c39dac53f76ee10c87af9ec5c5501bbe Mon Sep 17 00:00:00 2001 From: Alexey Rogachev Date: Wed, 13 Sep 2023 12:38:23 +0600 Subject: [PATCH] Increase MSI to 100% (#127) --- tests/CategoryTest.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/CategoryTest.php b/tests/CategoryTest.php index 868d64e..fc2b32c 100644 --- a/tests/CategoryTest.php +++ b/tests/CategoryTest.php @@ -52,15 +52,19 @@ public function testWriterAbsence(): void public function testWriterAvailable(): void { + $writer = $this->createMock(MessageWriterInterface::class); + $writer + ->expects($this->once()) + ->method('write') + ->with('app', 'en', []); $category = new CategorySource( 'app', $this->createMessageReader(), $this->createMessageFormatter(), - $this->createMock(MessageWriterInterface::class) + $writer, ); $category->write('en', []); - $this->expectNotToPerformAssertions(); } public function dataWithoutFormatter(): array