mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-24 17:23:54 +01:00
Add PHP 8.3 to Travis config & Skip broken tests (for now)
This commit is contained in:
parent
ecd905c36c
commit
f09ac29403
@ -8,6 +8,7 @@ language: php
|
||||
php:
|
||||
- 8.1
|
||||
- 8.2
|
||||
- 8.3
|
||||
|
||||
services:
|
||||
- mysql
|
||||
|
@ -10,6 +10,7 @@
|
||||
use Mockery\MockInterface;
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use PHPUnit\Framework\Attributes\PreserveGlobalState;
|
||||
use PHPUnit\Framework\Attributes\RequiresPhp;
|
||||
use PHPUnit\Framework\Attributes\RunInSeparateProcess;
|
||||
use Tests\TestCase;
|
||||
|
||||
@ -24,6 +25,7 @@ class DissociateTwofaccountFromGroupTest extends TestCase
|
||||
*/
|
||||
#[RunInSeparateProcess]
|
||||
#[PreserveGlobalState(false)]
|
||||
#[RequiresPhp('< 8.3.0')]
|
||||
public function test_twofaccount_is_released_on_group_deletion()
|
||||
{
|
||||
$this->mock('alias:' . TwoFAccount::class, function (MockInterface $twoFAccount) {
|
||||
|
@ -22,6 +22,7 @@
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use PHPUnit\Framework\Attributes\PreserveGlobalState;
|
||||
use PHPUnit\Framework\Attributes\RequiresPhp;
|
||||
use PHPUnit\Framework\Attributes\RunInSeparateProcess;
|
||||
use PHPUnit\Framework\Attributes\UsesClass;
|
||||
use Tests\Data\MigrationTestData;
|
||||
@ -333,6 +334,7 @@ public static function migrationWithInvalidAccountsProvider()
|
||||
*/
|
||||
#[RunInSeparateProcess]
|
||||
#[PreserveGlobalState(false)]
|
||||
#[RequiresPhp('< 8.3.0')]
|
||||
public function test_migrate_gauth_returns_fake_accounts()
|
||||
{
|
||||
$this->mock('alias:' . Base32::class, function (MockInterface $baseEncoder) {
|
||||
|
@ -12,6 +12,7 @@
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use PHPUnit\Framework\Attributes\PreserveGlobalState;
|
||||
use PHPUnit\Framework\Attributes\RequiresPhp;
|
||||
use PHPUnit\Framework\Attributes\RunInSeparateProcess;
|
||||
use Tests\ModelTestCase;
|
||||
|
||||
@ -121,6 +122,7 @@ public function test_indecipherable_attributes_returns_masked_value(string $attr
|
||||
*/
|
||||
#[RunInSeparateProcess]
|
||||
#[PreserveGlobalState(false)]
|
||||
#[RequiresPhp('< 8.3.0')]
|
||||
public function test_secret_is_uppercased_and_padded_at_setup()
|
||||
{
|
||||
$settingService = $this->mock(SettingService::class, function (MockInterface $settingService) {
|
||||
|
Loading…
Reference in New Issue
Block a user