mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-21 20:35:17 +02:00
CI fixes
This commit is contained in:
@@ -36,27 +36,27 @@ class SlackWebhookHandlerTest extends TestCase
|
||||
$record = $this->getRecord();
|
||||
$slackRecord = $handler->getSlackRecord();
|
||||
$this->assertInstanceOf('Monolog\Handler\Slack\SlackRecord', $slackRecord);
|
||||
$this->assertEquals(array(
|
||||
'attachments' => array(
|
||||
array(
|
||||
$this->assertEquals([
|
||||
'attachments' => [
|
||||
[
|
||||
'fallback' => 'test',
|
||||
'text' => 'test',
|
||||
'color' => SlackRecord::COLOR_WARNING,
|
||||
'fields' => array(
|
||||
array(
|
||||
'fields' => [
|
||||
[
|
||||
'title' => 'Level',
|
||||
'value' => 'WARNING',
|
||||
'short' => false,
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
'title' => 'Message',
|
||||
'mrkdwn_in' => array('fields'),
|
||||
'mrkdwn_in' => ['fields'],
|
||||
'ts' => $record->datetime->getTimestamp(),
|
||||
'footer' => null,
|
||||
'footer_icon' => null,
|
||||
),
|
||||
),
|
||||
), $slackRecord->getSlackData($record));
|
||||
],
|
||||
],
|
||||
], $slackRecord->getSlackData($record));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -79,12 +79,12 @@ class SlackWebhookHandlerTest extends TestCase
|
||||
|
||||
$slackRecord = $handler->getSlackRecord();
|
||||
$this->assertInstanceOf('Monolog\Handler\Slack\SlackRecord', $slackRecord);
|
||||
$this->assertEquals(array(
|
||||
$this->assertEquals([
|
||||
'username' => 'test-username',
|
||||
'text' => 'test',
|
||||
'channel' => 'test-channel',
|
||||
'icon_emoji' => ':ghost:',
|
||||
), $slackRecord->getSlackData($this->getRecord()));
|
||||
], $slackRecord->getSlackData($this->getRecord()));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -108,30 +108,30 @@ class SlackWebhookHandlerTest extends TestCase
|
||||
$record = $this->getRecord();
|
||||
$slackRecord = $handler->getSlackRecord();
|
||||
$this->assertInstanceOf('Monolog\Handler\Slack\SlackRecord', $slackRecord);
|
||||
$this->assertEquals(array(
|
||||
$this->assertEquals([
|
||||
'username' => 'test-username-with-attachment',
|
||||
'channel' => 'test-channel-with-attachment',
|
||||
'attachments' => array(
|
||||
array(
|
||||
'attachments' => [
|
||||
[
|
||||
'fallback' => 'test',
|
||||
'text' => 'test',
|
||||
'color' => SlackRecord::COLOR_WARNING,
|
||||
'fields' => array(
|
||||
array(
|
||||
'fields' => [
|
||||
[
|
||||
'title' => 'Level',
|
||||
'value' => LevelName::Warning->value,
|
||||
'short' => false,
|
||||
),
|
||||
),
|
||||
'mrkdwn_in' => array('fields'),
|
||||
],
|
||||
],
|
||||
'mrkdwn_in' => ['fields'],
|
||||
'ts' => $record['datetime']->getTimestamp(),
|
||||
'footer' => 'test-username-with-attachment',
|
||||
'footer_icon' => 'https://www.example.com/example.png',
|
||||
'title' => 'Message',
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
'icon_url' => 'https://www.example.com/example.png',
|
||||
), $slackRecord->getSlackData($record));
|
||||
], $slackRecord->getSlackData($record));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user