diff --git a/tests/Watchers/DumpWatcherTest.php b/tests/Watchers/DumpWatcherTest.php index 0f6ae8348..80d4c03f2 100644 --- a/tests/Watchers/DumpWatcherTest.php +++ b/tests/Watchers/DumpWatcherTest.php @@ -28,6 +28,6 @@ public function test_dump_watcher_register_entry() $entry = $this->loadTelescopeEntries()->first(); $this->assertSame(EntryType::DUMP, $entry->type); - $this->assertContains($var, $entry->content['dump']); + $this->assertStringContainsString($var, $entry->content['dump']); } } diff --git a/tests/Watchers/EventWatcherTest.php b/tests/Watchers/EventWatcherTest.php index b24f8e7e4..35eb30cf8 100644 --- a/tests/Watchers/EventWatcherTest.php +++ b/tests/Watchers/EventWatcherTest.php @@ -45,7 +45,9 @@ public function test_event_watcher_stores_payloads() $this->assertSame(EntryType::EVENT, $entry->type); $this->assertSame(DummyEvent::class, $entry->content['name']); $this->assertArrayHasKey('data', $entry->content['payload']); - $this->assertArraySubset(['Telescope', 'Laravel', 'PHP'], $entry->content['payload']['data']); + $this->assertContains('Telescope', $entry->content['payload']['data']); + $this->assertContains('Laravel', $entry->content['payload']['data']); + $this->assertContains('PHP', $entry->content['payload']['data']); } } diff --git a/tests/Watchers/MailWatcherTest.php b/tests/Watchers/MailWatcherTest.php index bf625c480..53eb4e340 100644 --- a/tests/Watchers/MailWatcherTest.php +++ b/tests/Watchers/MailWatcherTest.php @@ -41,7 +41,7 @@ public function test_mail_watcher_registers_entry() $this->assertSame(['bcc@laravel.com'], array_keys($entry->content['bcc'])); $this->assertSame('Check this out!', $entry->content['subject']); $this->assertSame('Telescope is amazing!', $entry->content['html']); - $this->assertContains('Telescope is amazing!', $entry->content['raw']); + $this->assertStringContainsString('Telescope is amazing!', $entry->content['raw']); $this->assertEmpty($entry->content['replyTo']); } } diff --git a/tests/Watchers/NotificationWatcherTest.php b/tests/Watchers/NotificationWatcherTest.php index bd5b6aa1e..ab3f3969f 100644 --- a/tests/Watchers/NotificationWatcherTest.php +++ b/tests/Watchers/NotificationWatcherTest.php @@ -32,7 +32,7 @@ public function test_notification_watcher_registers_entry() $this->assertSame(EntryType::NOTIFICATION, $entry->type); $this->assertSame(BoomerangNotification::class, $entry->content['notification']); $this->assertSame(false, $entry->content['queued']); - $this->assertContains('telescope@laravel.com', $entry->content['notifiable']); + $this->assertStringContainsString('telescope@laravel.com', $entry->content['notifiable']); $this->assertSame('mail', $entry->content['channel']); $this->assertNull($entry->content['response']); }