Skip to content

Commit

Permalink
DEP Use PHPUnit 11
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Sep 17, 2024
1 parent 32a48a4 commit f829e58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"ua-parser/uap-php": "^3.9.14"
},
"require-dev": {
"phpunit/phpunit": "^9.6",
"phpunit/phpunit": "^11.3",
"squizlabs/php_codesniffer": "^3.7",
"symbiote/silverstripe-queuedjobs": "^6",
"silverstripe/standards": "^1",
Expand Down
5 changes: 3 additions & 2 deletions tests/php/Control/LoginSessionControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use SilverStripe\SessionManager\Control\LoginSessionMiddleware;
use SilverStripe\SessionManager\Controllers\LoginSessionController;
use SilverStripe\SessionManager\Models\LoginSession;
use PHPUnit\Framework\Attributes\DataProvider;

class LoginSessionControllerTest extends FunctionalTest
{
Expand Down Expand Up @@ -113,7 +114,7 @@ public function testBadSecurityID()
);
}

public function badIDs()
public static function badIDs()
{
return [
'No ID' => [''],
Expand All @@ -123,8 +124,8 @@ public function badIDs()

/**
* @param $id
* @dataProvider badIDs
*/
#[DataProvider('badIDs')]
public function testBadID($sessionID)
{
$token = SecurityToken::inst()->getValue();
Expand Down

0 comments on commit f829e58

Please sign in to comment.