Skip to content

Commit 36259d0

Browse files
committed
update stan & cleanup tests
1 parent 2314ece commit 36259d0

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

.phive/phars.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
3-
<phar name="phpstan" version="2.1.17" installed="2.1.17" location="./tools/phpstan" copy="false"/>
3+
<phar name="phpstan" version="2.1.31" installed="2.1.31" location="./tools/phpstan" copy="false"/>
44
</phive>

tests/TestCase/Panel/IncludePanelTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ class IncludePanelTest extends TestCase
3636
public function setUp(): void
3737
{
3838
parent::setUp();
39-
$this->panel = new IncludePanel();
39+
$this->deprecated(function () {
40+
$this->panel = new IncludePanel();
41+
});
4042
}
4143

4244
/**

tests/TestCase/Panel/SessionPanelTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ public function testShutdownSkipAttributes()
5757

5858
$controller = new Controller($request);
5959
$event = new Event('Controller.shutdown', $controller);
60-
$this->panel->shutdown($event);
60+
$this->deprecated(function () use ($event) {
61+
$this->panel->shutdown($event);
62+
});
6163

6264
$data = $this->panel->data();
6365
$this->assertArrayHasKey('content', $data);

tests/bootstrap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@
7171
]);
7272

7373
Cache::setConfig([
74-
'_cake_core_' => [
74+
'_cake_translations_' => [
7575
'engine' => 'File',
76-
'prefix' => 'cake_core_',
76+
'prefix' => 'cake_translations_',
7777
'serialize' => true,
7878
],
7979
'_cake_model_' => [

0 commit comments

Comments
 (0)