Skip to content

Commit

Permalink
Increase MSI to 100% (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
arogachev authored Sep 13, 2023
1 parent ada5845 commit 9e88b64
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/CategoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e88b64

Please sign in to comment.