File tree Expand file tree Collapse file tree 3 files changed +6
-22
lines changed
app/code/Magento/JwtFrameworkAdapter/Test/Unit/Model Expand file tree Collapse file tree 3 files changed +6
-22
lines changed Original file line number Diff line number Diff line change 1313use Magento \Framework \Jwt \Payload \ClaimsPayloadInterface ;
1414use Magento \Framework \Jwt \Payload \NestedPayloadInterface ;
1515use Magento \JwtFrameworkAdapter \Model \JweFactory ;
16+ use PHPUnit \Framework \Attributes \DataProvider ;
1617use PHPUnit \Framework \TestCase ;
1718
1819class JweFactoryTest extends TestCase
@@ -76,15 +77,8 @@ public static function getCreateCases(): array
7677
7778 /**
7879 * Test "create" method.
79- *
80- * @param array $headers
81- * @param string $content
82- * @param array|null $unprotected
83- * @param array|null $perRecipient
84- * @param string $payloadClass
85- * @return void
86- * @dataProvider getCreateCases
8780 */
81+ #[DataProvider('getCreateCases ' )]
8882 public function testCreate (
8983 array $ headers ,
9084 string $ content ,
Original file line number Diff line number Diff line change 1313use Magento \Framework \Jwt \Payload \ClaimsPayloadInterface ;
1414use Magento \Framework \Jwt \Payload \NestedPayloadInterface ;
1515use Magento \JwtFrameworkAdapter \Model \JwsFactory ;
16+ use PHPUnit \Framework \Attributes \DataProvider ;
1617use PHPUnit \Framework \TestCase ;
1718
1819class JwsFactoryTest extends TestCase
@@ -71,14 +72,8 @@ public static function getCreateCases(): array
7172
7273 /**
7374 * Test "create" method.
74- *
75- * @param array $headers
76- * @param string $content
77- * @param array|null $unprotected
78- * @param string $payloadClass
79- * @return void
80- * @dataProvider getCreateCases
8175 */
76+ #[DataProvider('getCreateCases ' )]
8277 public function testCreate (
8378 array $ headers ,
8479 string $ content ,
Original file line number Diff line number Diff line change 1313use Magento \Framework \Jwt \Payload \ClaimsPayloadInterface ;
1414use Magento \Framework \Jwt \Payload \NestedPayloadInterface ;
1515use Magento \JwtFrameworkAdapter \Model \UnsecuredJwtFactory ;
16+ use PHPUnit \Framework \Attributes \DataProvider ;
1617use PHPUnit \Framework \TestCase ;
1718
1819class UnsecuredJwtFactoryTest extends TestCase
@@ -77,14 +78,8 @@ public static function getCreateCases(): array
7778
7879 /**
7980 * Test "create" method.
80- *
81- * @param array $headers
82- * @param string $content
83- * @param array|null $unprotected
84- * @param string $payloadClass
85- * @return void
86- * @dataProvider getCreateCases
8781 */
82+ #[DataProvider('getCreateCases ' )]
8883 public function testCreate (
8984 array $ headers ,
9085 string $ content ,
You can’t perform that action at this time.
0 commit comments