Upgrade tests to PhpUnit 10 (#5252)
This commit is contained in:
@@ -31,7 +31,7 @@ class ProfileManagerTest extends TestCase
|
||||
self::assertEquals(ProfileManager::PROFILE_DESKTOP, $sut->getProfileFromSession($session));
|
||||
}
|
||||
|
||||
public function getInvalidProfiles()
|
||||
public static function getInvalidProfiles()
|
||||
{
|
||||
return [
|
||||
['MOBILE'],
|
||||
@@ -54,7 +54,7 @@ class ProfileManagerTest extends TestCase
|
||||
self::assertFalse($sut->isValidProfile($profile));
|
||||
}
|
||||
|
||||
public function getDatatableNames()
|
||||
public static function getDatatableNames()
|
||||
{
|
||||
return [
|
||||
['admin-timesheet_mobile', 'admin-timesheet', 'mobile'],
|
||||
@@ -77,7 +77,7 @@ class ProfileManagerTest extends TestCase
|
||||
self::assertEquals($expected, $sut->getDatatableName($datatable, $prefix));
|
||||
}
|
||||
|
||||
public function getProfileNames()
|
||||
public static function getProfileNames()
|
||||
{
|
||||
return [
|
||||
['mobile', ProfileManager::PROFILE_MOBILE],
|
||||
@@ -125,7 +125,7 @@ class ProfileManagerTest extends TestCase
|
||||
self::assertNull($session->get(ProfileManager::SESSION_PROFILE));
|
||||
}
|
||||
|
||||
public function getCookieProfiles()
|
||||
public static function getCookieProfiles()
|
||||
{
|
||||
return [
|
||||
['mobile', ProfileManager::PROFILE_MOBILE],
|
||||
@@ -154,7 +154,7 @@ class ProfileManagerTest extends TestCase
|
||||
self::assertEquals($expected, $profile);
|
||||
}
|
||||
|
||||
public function getSessionProfiles()
|
||||
public static function getSessionProfiles()
|
||||
{
|
||||
return [
|
||||
['mobile', ProfileManager::PROFILE_MOBILE],
|
||||
|
||||
Reference in New Issue
Block a user