Skip to content

Commit 770afff

Browse files
committed
update tests
1 parent 84c9cef commit 770afff

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

tests/system/Helpers/FormHelperTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,6 @@ public function testSetRadioFromSessionOldInputPostArrayWithValueZero(): void
10411041
public function testSetRadioDefault(): void
10421042
{
10431043
$_SESSION = [];
1044-
$_POST = [];
10451044

10461045
$this->assertSame(' checked="checked"', set_radio('code', 'alpha', true));
10471046
$this->assertSame('', set_radio('code', 'beta', false));

tests/system/Models/PaginateModelTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function testPaginatePageOutOfRange(): void
8686

8787
public function testMultiplePager(): void
8888
{
89-
$_GET = [];
89+
service('superglobals')->setGetArray([]);
9090

9191
$validModel = $this->createModel(ValidModel::class);
9292
$userModel = $this->createModel(UserModel::class);

utils/phpstan-baseline/codeigniter.getReassignArray.neon

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 10 errors
1+
# total 9 errors
22

33
parameters:
44
ignoreErrors:
@@ -37,11 +37,6 @@ parameters:
3737
count: 1
3838
path: ../../tests/system/Helpers/FormHelperTest.php
3939

40-
-
41-
message: '#^Re\-assigning arrays to \$_GET directly is discouraged\.$#'
42-
count: 1
43-
path: ../../tests/system/Models/PaginateModelTest.php
44-
4540
-
4641
message: '#^Re\-assigning arrays to \$_GET directly is discouraged\.$#'
4742
count: 1

utils/phpstan-baseline/loader.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 2222 errors
1+
# total 2221 errors
22

33
includes:
44
- argument.type.neon

0 commit comments

Comments
 (0)