From e6f39f6dd49a65a8985b77ecfc72608c1aea300a Mon Sep 17 00:00:00 2001 From: Wilmer Arambula <42547589+terabytesoftw@users.noreply.github.com> Date: Thu, 26 Oct 2023 05:09:35 -0300 Subject: [PATCH] Fix error typo in tests directory. (#3) --- tests/BaseClientTest.php | 2 +- tests/BaseOAuthTest.php | 6 +++--- tests/OAuth1Test.php | 2 +- tests/OpenIdTest.php | 2 +- tests/TokenTest.php | 2 +- tests/{Provider => provider}/Data.php | 2 +- tests/signature/RsaShaTest.php | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) rename tests/{Provider => provider}/Data.php (99%) diff --git a/tests/BaseClientTest.php b/tests/BaseClientTest.php index 597c244..394f462 100644 --- a/tests/BaseClientTest.php +++ b/tests/BaseClientTest.php @@ -84,7 +84,7 @@ public function testGetDefaults(): void } /** - * @dataProvider yiiunit\extensions\authclient\Provider\Data::normalizeUserAttributes + * @dataProvider yiiunit\extensions\authclient\provider\Data::normalizeUserAttributes * * @depends testSetGet * diff --git a/tests/BaseOAuthTest.php b/tests/BaseOAuthTest.php index 0d4f1ae..bac08a7 100644 --- a/tests/BaseOAuthTest.php +++ b/tests/BaseOAuthTest.php @@ -120,7 +120,7 @@ public function testSetupComponentsByConfig(): void } /** - * @dataProvider yiiunit\extensions\authclient\Provider\Data::composeUrl + * @dataProvider yiiunit\extensions\authclient\provider\Data::composeUrl * * @param string $url request URL. * @param array $params request params @@ -136,7 +136,7 @@ public function testComposeUrl($url, array $params, $expectedUrl): void /** * @depends testSetupAccessToken * - * @dataProvider yiiunit\extensions\authclient\Provider\Data::apiUrl + * @dataProvider yiiunit\extensions\authclient\provider\Data::apiUrl * * @param $apiBaseUrl * @param $apiSubUrl @@ -160,7 +160,7 @@ public function testApiUrl($apiBaseUrl, $apiSubUrl, $expectedApiFullUrl): void } /** - * @dataProvider yiiunit\extensions\authclient\Provider\Data::sendRequest + * @dataProvider yiiunit\extensions\authclient\provider\Data::sendRequest * * @param $responseStatusCode * @param $expectedException diff --git a/tests/OAuth1Test.php b/tests/OAuth1Test.php index 7d50eb2..918e000 100644 --- a/tests/OAuth1Test.php +++ b/tests/OAuth1Test.php @@ -127,7 +127,7 @@ public function testAuthorizationHeaderMethods(): void } /** - * @dataProvider yiiunit\extensions\authclient\Provider\Data::composeAuthorizationHeader + * @dataProvider yiiunit\extensions\authclient\provider\Data::composeAuthorizationHeader * * @param string $realm authorization realm. * @param array $params request params. diff --git a/tests/OpenIdTest.php b/tests/OpenIdTest.php index fb82035..163d575 100644 --- a/tests/OpenIdTest.php +++ b/tests/OpenIdTest.php @@ -66,7 +66,7 @@ public function testDiscover(): never /** * @see https://github.com/yiisoft/yii2/issues/3633 * - * @dataProvider yiiunit\extensions\authclient\Provider\Data::compareUrl + * @dataProvider yiiunit\extensions\authclient\provider\Data::compareUrl * * @param string $url1 * @param string $url2 diff --git a/tests/TokenTest.php b/tests/TokenTest.php index f31083e..8de01ff 100644 --- a/tests/TokenTest.php +++ b/tests/TokenTest.php @@ -77,7 +77,7 @@ public function testSetupParamsShortcuts(): void /** * @depends testSetupParamsShortcuts * - * @dataProvider yiiunit\extensions\authclient\Provider\Data::autoFetchExpireDuration + * @dataProvider yiiunit\extensions\authclient\provider\Data::autoFetchExpireDuration * * @param $expectedExpireDuration */ diff --git a/tests/Provider/Data.php b/tests/provider/Data.php similarity index 99% rename from tests/Provider/Data.php rename to tests/provider/Data.php index d83589c..a684a4d 100644 --- a/tests/Provider/Data.php +++ b/tests/provider/Data.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace yiiunit\extensions\authclient\Provider; +namespace yiiunit\extensions\authclient\provider; final class Data { diff --git a/tests/signature/RsaShaTest.php b/tests/signature/RsaShaTest.php index c015dde..7ae79d3 100644 --- a/tests/signature/RsaShaTest.php +++ b/tests/signature/RsaShaTest.php @@ -62,7 +62,7 @@ protected function getTestPrivateCertificate() } /** - * @dataProvider yiiunit\extensions\authclient\Provider\Data::getName + * @dataProvider yiiunit\extensions\authclient\provider\Data::getName * * @param $algorithm * @param $expectedName