Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6e302e8

Browse files
authored
[11.x] Test Improvements (#49271)
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent ea3d479 commit 6e302e8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ jobs:
6868
timeout_minutes: 5
6969
max_attempts: 5
7070
command: composer require guzzlehttp/psr7:^2.4 --no-interaction --no-update
71-
if: matrix.php >= 8.2
7271

7372
- name: Install dependencies
7473
uses: nick-fields/retry@v2
@@ -131,7 +130,6 @@ jobs:
131130
timeout_minutes: 5
132131
max_attempts: 5
133132
command: composer require guzzlehttp/psr7:~2.4 --no-interaction --no-update
134-
if: matrix.php >= 8.2
135133

136134
- name: Install dependencies
137135
uses: nick-fields/retry@v2

tests/Integration/Http/ThrottleRequestsTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Illuminate\Support\Carbon;
1212
use Illuminate\Support\Facades\Route;
1313
use Orchestra\Testbench\TestCase;
14+
use PHPUnit\Framework\Attributes\DataProvider;
1415
use Throwable;
1516

1617
class ThrottleRequestsTest extends TestCase
@@ -127,7 +128,7 @@ public static function perMinuteThrottlingDataSet()
127128
];
128129
}
129130

130-
/** @dataProvider perMinuteThrottlingDataSet */
131+
#[DataProvider('perMinuteThrottlingDataSet')]
131132
public function testItCanThrottlePerMinute(string $middleware)
132133
{
133134
$rateLimiter = Container::getInstance()->make(RateLimiter::class);

0 commit comments

Comments
 (0)