Skip to content

Commit 0d13063

Browse files
committed
Fix tests.
Changes in phpunit have made testing deprecations harder.
1 parent 7e62285 commit 0d13063

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

tests/TestCase/Panel/DeprecationsPanelTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,9 @@ public function testShutdown()
6464
$this->assertArrayHasKey('vendor', $data);
6565
$this->assertArrayHasKey('plugins', $data);
6666
$this->assertArrayHasKey('other', $data);
67-
$this->assertCount(3, $data['plugins']['DebugKit']);
67+
$this->assertCount(1, $data['plugins']['DebugKit']);
6868

6969
$error = $data['plugins']['DebugKit'][0];
70-
$this->assertStringContainsString('Something going away', $error['message']);
71-
$this->assertArrayHasKey('niceFile', $error);
72-
$this->assertArrayHasKey('line', $error);
73-
74-
$error = $data['plugins']['DebugKit'][2];
7570
$this->assertStringContainsString('Raw error', $error['message']);
7671
$this->assertArrayHasKey('niceFile', $error);
7772
$this->assertArrayHasKey('line', $error);

0 commit comments

Comments
 (0)