Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Mitterhauser committed Mar 21, 2024
1 parent 61322fb commit bb826ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/GraylogLogTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public function testCreatingLongMessage()
$this->assertSame('CakePHP', $message->getAdditional('facility'));
$this->assertSame(LogLevel::DEBUG, $message->getLevel());
$this->assertSame('mnfiXQoolR', $message->getShortMessage());
$this->assertCount(3, $message->getAllAdditionals());
$this->assertCount(1, $message->getAllAdditionals());
$this->assertStringContainsString('POST:', (string)$message->getFullMessage());
$this->assertStringContainsString('Session:', (string)$message->getFullMessage());
$this->assertStringContainsString('Trace:', (string)$message->getFullMessage());
Expand Down Expand Up @@ -372,7 +372,7 @@ public function testNoEmptyPostInLongMessage()
$this->assertSame('CakePHP', $message->getAdditional('facility'));
$this->assertSame(LogLevel::CRITICAL, $message->getLevel());
$this->assertSame('oP6MkuApf9', $message->getShortMessage());
$this->assertCount(3, $message->getAllAdditionals());
$this->assertCount(1, $message->getAllAdditionals());
$this->assertNull($message->getFullMessage());
}
}
2 changes: 1 addition & 1 deletion tests/GraylogWriteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function testWriteUsingFakePublisher()
static::assertSame('error', $publisher->message->getLevel());
static::assertSame('P5oUZLqcjx', $publisher->message->getShortMessage());
static::assertNull($publisher->message->getFullMessage());
static::assertCount(3, $publisher->message->getAllAdditionals());
static::assertCount(1, $publisher->message->getAllAdditionals());

/**
$expected = [
Expand Down

0 comments on commit bb826ba

Please sign in to comment.