Skip to content

Commit d855dad

Browse files
ShradddhaShradddha
authored andcommitted
AC-12092:: Remove Deprecations- PhpUnit10 Unit Tests
1 parent 2554664 commit d855dad

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

ReCaptchaWebapiGraphQl/Test/Unit/Plugin/GraphQlValidatorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
use PHPUnit\Framework\TestCase;
2424
use Magento\Framework\GraphQl\Schema\Type\ResolveInfo;
2525

26+
/**
27+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
28+
*/
2629
class GraphQlValidatorTest extends TestCase
2730
{
2831
/**

TwoFactorAuth/Test/Unit/Model/Config/Backend/Duo/ApiHostnameTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testBefore($value, $isValid): void
4040
$this->model->beforeSave();
4141
}
4242

43-
public function valuesDataProvider()
43+
public static function valuesDataProvider()
4444
{
4545
return [
4646
['', true],

TwoFactorAuth/Test/Unit/Model/Provider/Engine/AuthyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected function setUp(): void
4040
*
4141
* @return array
4242
*/
43-
public function getIsEnabledTestDataSet(): array
43+
public static function getIsEnabledTestDataSet(): array
4444
{
4545
return [
4646
'api key present' => [

TwoFactorAuth/Test/Unit/Model/Provider/Engine/DuoSecurityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function setUp(): void
5555
*
5656
* @return array
5757
*/
58-
public function getIsEnabledTestDataSet(): array
58+
public static function getIsEnabledTestDataSet(): array
5959
{
6060
return [
6161
[

TwoFactorAuth/Test/Unit/Model/TfaTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function testAllEnabledProvidersUpdates(): void
142142
*
143143
* @return array
144144
*/
145-
public function getForcedProvidersDataSet(): array
145+
public static function getForcedProvidersDataSet(): array
146146
{
147147
return [
148148
'not defined' => [

TwoFactorAuth/Test/Unit/Model/UserConfig/HtmlAreaTokenVerifierTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ protected function setUp(): void
9595
*
9696
* @return array
9797
*/
98-
public function getTokenRequestData(): array
98+
public static function getTokenRequestData(): array
9999
{
100100
return [
101101
'token in query' => [

0 commit comments

Comments
 (0)