From 0d130636cbb5e2cfc76c624859361fac95186b70 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Fri, 3 May 2024 14:14:48 -0400 Subject: [PATCH] Fix tests. Changes in phpunit have made testing deprecations harder. --- tests/TestCase/Panel/DeprecationsPanelTest.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/TestCase/Panel/DeprecationsPanelTest.php b/tests/TestCase/Panel/DeprecationsPanelTest.php index 0eae1099..64aaf3a7 100644 --- a/tests/TestCase/Panel/DeprecationsPanelTest.php +++ b/tests/TestCase/Panel/DeprecationsPanelTest.php @@ -64,14 +64,9 @@ public function testShutdown() $this->assertArrayHasKey('vendor', $data); $this->assertArrayHasKey('plugins', $data); $this->assertArrayHasKey('other', $data); - $this->assertCount(3, $data['plugins']['DebugKit']); + $this->assertCount(1, $data['plugins']['DebugKit']); $error = $data['plugins']['DebugKit'][0]; - $this->assertStringContainsString('Something going away', $error['message']); - $this->assertArrayHasKey('niceFile', $error); - $this->assertArrayHasKey('line', $error); - - $error = $data['plugins']['DebugKit'][2]; $this->assertStringContainsString('Raw error', $error['message']); $this->assertArrayHasKey('niceFile', $error); $this->assertArrayHasKey('line', $error);