Skip to content

Commit 3f1c5d5

Browse files
committed
ICL: Laravel 5.5 support.
1 parent b208120 commit 3f1c5d5

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

phpunit.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit backupGlobals="false"
33
backupStaticAttributes="false"
4+
beStrictAboutTestsThatDoNotTestAnything="false"
45
bootstrap="vendor/autoload.php"
56
colors="true"
67
convertErrorsToExceptions="true"

tests/ConsoleLogger/Loggable/Notifications/DatabaseChannel/DatabaseChannelTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ public function it_is_not_storing_notifications_to_database_if_it_is_disabled()
1414
{
1515
$this->artisan('database-notifications-disabled-command');
1616

17-
$this->dontSeeDatabaseTable('iclogger_notifications');
17+
$this->assertDatabaseMissingTable('iclogger_notifications');
1818
}
1919

2020
/** @test */
2121
public function it_stores_notifications_to_database_if_it_is_enabled_and_also_according_to_notifications_level()
2222
{
2323
$this->artisan('database-notifications-command');
2424

25-
$this->dontSeeInDatabaseMany('iclogger_notifications', [
25+
$this->assertDatabaseMissingMany('iclogger_notifications', [
2626
['level' => Logger::DEBUG],
2727
['level' => Logger::INFO],
2828
]);
29-
$this->seeInDatabaseMany('iclogger_notifications', [
29+
$this->assertDatabaseHasMany('iclogger_notifications', [
3030
[
3131
'level' => Logger::NOTICE,
3232
'level_name' => Logger::getLevelName(Logger::NOTICE),
@@ -79,11 +79,11 @@ public function it_provides_an_ability_to_use_custom_database_table_and_callback
7979

8080
$this->artisan('database-notifications-callback-command');
8181

82-
$this->dontSeeInDatabaseMany('custom_notifications', [
82+
$this->assertDatabaseMissingMany('custom_notifications', [
8383
['level' => Logger::DEBUG],
8484
['level' => Logger::INFO],
8585
]);
86-
$this->seeInDatabaseMany('custom_notifications', [
86+
$this->assertDatabaseHasMany('custom_notifications', [
8787
[
8888
'level' => Logger::NOTICE,
8989
'level_name' => Logger::getLevelName(Logger::NOTICE),

tests/ConsoleLogger/Loggable/Notifications/EmailChannel/EmailChannelTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ private function normalizeMailerHandlerDump($dump)
159159
{
160160
$dump = preg_replace('/\{#\d*/', '{', $dump);
161161
$dump = preg_replace('/".*[email protected]"/', '"normalized"', $dump);
162-
$dump = preg_replace('/-_cacheKey: ".*?"/', '-_cacheKey: "normalized"', $dump);
162+
$dump = preg_replace('/\+"date": ".*?\.\d*"/', '+date: "normalized"', $dump);
163+
$dump = preg_replace('/-cacheKey: ".*?"/', '-cacheKey: "normalized"', $dump);
163164
$dump = preg_replace('/-_timestamp: .*?\n/', '', $dump);
164165
$dump = preg_replace('/#initialized: .*?\n/', '', $dump);
165166

0 commit comments

Comments
 (0)