Skip to content

Commit 2781466

Browse files
committed
fix tests after merge
1 parent 0cf9392 commit 2781466

File tree

4 files changed

+10
-20
lines changed

4 files changed

+10
-20
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
parameters:
22
ignoreErrors:
3-
-
4-
message: "#^Comparison operation \"\\<\" between int\\<0, max\\> and 10\\|100\\|array\\<int, string\\>\\|bool\\|string\\|null results in an error\\.$#"
5-
count: 1
6-
path: src/Command/BenchmarkCommand.php
7-
8-
-
9-
message: "#^Comparison operation \"\\<\\=\" between 10\\|100\\|array\\<int, string\\>\\|string\\|true and 1 results in an error\\.$#"
10-
count: 1
11-
path: src/Command/BenchmarkCommand.php
12-
133
-
144
message: "#^Method DebugKit\\\\Mailer\\\\Transport\\\\DebugKitTransport\\:\\:send\\(\\) should return array\\{headers\\: string, message\\: string\\} but returns array\\{headers\\: non\\-empty\\-array\\<string, string\\>, message\\: array\\{text\\: string, html\\: string\\}\\}\\.$#"
155
count: 1

tests/TestCase/Middleware/DebugKitMiddlewareTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ public function testInvokeSaveData()
126126
$this->assertSame(200, $result->status_code);
127127
$this->assertGreaterThan(1, $result->panels);
128128

129-
$this->assertSame('Timer', $result->panels[10]->panel);
130-
$this->assertSame('DebugKit.timer_panel', $result->panels[10]->element);
131-
$this->assertNotNull($result->panels[10]->summary);
132-
$this->assertSame('Timer', $result->panels[10]->title);
129+
$this->assertSame('Timer', $result->panels[11]->panel);
130+
$this->assertSame('DebugKit.timer_panel', $result->panels[11]->element);
131+
$this->assertNotNull($result->panels[11]->summary);
132+
$this->assertSame('Timer', $result->panels[11]->title);
133133

134134
$timeStamp = filectime(Plugin::path('DebugKit') . 'webroot' . DS . 'js' . DS . 'inject-iframe.js');
135135

tests/TestCase/Panel/DeprecationsPanelTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ public function testShutdown()
6767
$this->assertArrayHasKey('vendor', $data);
6868
$this->assertArrayHasKey('plugins', $data);
6969
$this->assertArrayHasKey('other', $data);
70-
$this->assertCount(1, $data['plugins']['DebugKit']);
70+
$this->assertCount(3, $data['plugins']['DebugKit']);
7171

7272
$error = $data['plugins']['DebugKit'][0];
73-
$this->assertStringContainsString('Raw error', $error['message']);
73+
$this->assertStringContainsString('Something going away', $error['message']);
7474
$this->assertArrayHasKey('niceFile', $error);
7575
$this->assertArrayHasKey('line', $error);
7676
}

tests/TestCase/ToolbarServiceTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,13 @@ public function testSaveData()
257257
$this->assertSame(200, $result->status_code);
258258
$this->assertGreaterThan(1, $result->panels);
259259

260-
$this->assertSame('Timer', $result->panels[10]->panel);
261-
$this->assertSame('DebugKit.timer_panel', $result->panels[10]->element);
260+
$this->assertSame('Timer', $result->panels[11]->panel);
261+
$this->assertSame('DebugKit.timer_panel', $result->panels[11]->element);
262262
$this->assertMatchesRegularExpression(
263263
'/\d+\.\d+\s[ms]+\s+\/\s+\d+\.\d+\s+[mbMB]+/',
264-
$result->panels[10]->summary
264+
$result->panels[11]->summary
265265
);
266-
$this->assertSame('Timer', $result->panels[10]->title);
266+
$this->assertSame('Timer', $result->panels[11]->title);
267267
}
268268

269269
/**

0 commit comments

Comments
 (0)