Skip to content

Commit 99c1289

Browse files
committed
Fix CS errors
1 parent 0a6488a commit 99c1289

9 files changed

+25
-16
lines changed

tests/TestCase/Action/AddActionTest.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Cake\Core\Configure;
88
use Cake\Routing\Router;
99
use Crud\TestSuite\IntegrationTestCase;
10+
use PHPUnit\Framework\Attributes\DataProvider;
1011

1112
/**
1213
* Licensed under The MIT License
@@ -357,7 +358,7 @@ public static function apiGetHttpMethodProvider()
357358
* @param string $method
358359
* @return void
359360
*/
360-
#[\PHPUnit\Framework\Attributes\DataProvider('apiGetHttpMethodProvider')]
361+
#[DataProvider('apiGetHttpMethodProvider')]
361362
public function testApiGet($method)
362363
{
363364
Router::createRouteBuilder('/')
@@ -389,7 +390,7 @@ public static function apiUpdateHttpMethodProvider()
389390
* @param string $method
390391
* @return void
391392
*/
392-
#[\PHPUnit\Framework\Attributes\DataProvider('apiUpdateHttpMethodProvider')]
393+
#[DataProvider('apiUpdateHttpMethodProvider')]
393394
public function testApiCreate($method)
394395
{
395396
$this->_eventManager->on(
@@ -432,7 +433,7 @@ function ($event) {
432433
* @param string $method
433434
* @return void
434435
*/
435-
#[\PHPUnit\Framework\Attributes\DataProvider('apiUpdateHttpMethodProvider')]
436+
#[DataProvider('apiUpdateHttpMethodProvider')]
436437
public function testApiCreateError($method)
437438
{
438439
$this->_eventManager->on(
@@ -486,7 +487,7 @@ function ($event) {
486487
* @param string $method
487488
* @return void
488489
*/
489-
#[\PHPUnit\Framework\Attributes\DataProvider('apiUpdateHttpMethodProvider')]
490+
#[DataProvider('apiUpdateHttpMethodProvider')]
490491
public function testApiCreateErrors($method)
491492
{
492493
$this->_eventManager->on(

tests/TestCase/Action/Bulk/DeleteActionTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
use Cake\Controller\Component\FlashComponent;
77
use Crud\TestSuite\IntegrationTestCase;
8+
use PHPUnit\Framework\Attributes\DataProvider;
89

910
/**
1011
* Licensed under The MIT License
@@ -47,7 +48,7 @@ public static function allHttpMethodProvider()
4748
*
4849
* @return void
4950
*/
50-
#[\PHPUnit\Framework\Attributes\DataProvider('allHttpMethodProvider')]
51+
#[DataProvider('allHttpMethodProvider')]
5152
public function testAllRequestMethods($method)
5253
{
5354
$this->_eventManager->on(

tests/TestCase/Action/Bulk/SetValueActionTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
use Cake\Controller\Component\FlashComponent;
77
use Crud\TestSuite\IntegrationTestCase;
8+
use PHPUnit\Framework\Attributes\DataProvider;
89

910
/**
1011
* Licensed under The MIT License
@@ -47,7 +48,7 @@ public static function allHttpMethodProvider()
4748
*
4849
* @return void
4950
*/
50-
#[\PHPUnit\Framework\Attributes\DataProvider('allHttpMethodProvider')]
51+
#[DataProvider('allHttpMethodProvider')]
5152
public function testAllRequestMethods($method)
5253
{
5354
$this->_eventManager->on(

tests/TestCase/Action/Bulk/ToggleActionTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
use Cake\Controller\Component\FlashComponent;
77
use Crud\TestSuite\IntegrationTestCase;
8+
use PHPUnit\Framework\Attributes\DataProvider;
89

910
/**
1011
* Licensed under The MIT License
@@ -47,7 +48,7 @@ public static function allHttpMethodProvider()
4748
*
4849
* @return void
4950
*/
50-
#[\PHPUnit\Framework\Attributes\DataProvider('allHttpMethodProvider')]
51+
#[DataProvider('allHttpMethodProvider')]
5152
public function testAllRequestMethods($method)
5253
{
5354
$this->_eventManager->on(

tests/TestCase/Action/DeleteActionTest.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
use Cake\Controller\Component\FlashComponent;
77
use Crud\TestSuite\IntegrationTestCase;
8+
use PHPUnit\Framework\Attributes\DataProvider;
89

910
/**
1011
* Licensed under The MIT License
@@ -44,7 +45,7 @@ public static function allHttpMethodProvider()
4445
*
4546
* @return void
4647
*/
47-
#[\PHPUnit\Framework\Attributes\DataProvider('allHttpMethodProvider')]
48+
#[DataProvider('allHttpMethodProvider')]
4849
public function testAllRequestMethods($method)
4950
{
5051
$this->_eventManager->on(
@@ -154,7 +155,7 @@ function ($event) {
154155
*
155156
* @return void
156157
*/
157-
#[\PHPUnit\Framework\Attributes\DataProvider('allHttpMethodProvider')]
158+
#[DataProvider('allHttpMethodProvider')]
158159
public function testStopBeforeRedirect()
159160
{
160161
$this->_eventManager->on(

tests/TestCase/Action/IndexActionTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
namespace Crud\Test\TestCase\Action;
55

66
use Crud\TestSuite\IntegrationTestCase;
7+
use PHPUnit\Framework\Attributes\DataProvider;
78

89
/**
910
* Licensed under The MIT License
@@ -38,7 +39,7 @@ public static function allHttpMethodProvider()
3839
*
3940
* @return void
4041
*/
41-
#[\PHPUnit\Framework\Attributes\DataProvider('allHttpMethodProvider')]
42+
#[DataProvider('allHttpMethodProvider')]
4243
public function testGet($method)
4344
{
4445
$this->_eventManager->on(

tests/TestCase/Action/ViewActionTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
namespace Crud\Test\TestCase\Action;
55

66
use Crud\TestSuite\IntegrationTestCase;
7+
use PHPUnit\Framework\Attributes\DataProvider;
78

89
/**
910
* Licensed under The MIT License
@@ -38,7 +39,7 @@ public static function allHttpMethodProvider()
3839
*
3940
* @return void
4041
*/
41-
#[\PHPUnit\Framework\Attributes\DataProvider('allHttpMethodProvider')]
42+
#[DataProvider('allHttpMethodProvider')]
4243
public function testGet($method)
4344
{
4445
$this->_eventManager->on(

tests/TestCase/Listener/ApiListenerTest.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Crud\Listener\ApiListener;
2020
use Crud\Test\App\Controller\BlogsController;
2121
use Crud\TestSuite\TestCase;
22+
use PHPUnit\Framework\Attributes\DataProvider;
2223
use StdClass;
2324

2425
/**
@@ -412,7 +413,7 @@ public static function dataExceptionResponse()
412413
* @param array $validationErrors
413414
* @return void
414415
*/
415-
#[\PHPUnit\Framework\Attributes\DataProvider('dataExceptionResponse')]
416+
#[DataProvider('dataExceptionResponse')]
416417
public function testExceptionResponse(
417418
$apiConfig,
418419
$exceptionClass,
@@ -514,7 +515,7 @@ public static function dataSerializeTraitActions()
514515
*
515516
* @return void
516517
*/
517-
#[\PHPUnit\Framework\Attributes\DataProvider('dataSerializeTraitActions')]
518+
#[DataProvider('dataSerializeTraitActions')]
518519
public function testEnsureSerializeWithSerializeTrait($action)
519520
{
520521
$listener = $this
@@ -1091,7 +1092,7 @@ public static function dataExpandPath()
10911092
*
10921093
* @return void
10931094
*/
1094-
#[\PHPUnit\Framework\Attributes\DataProvider('dataExpandPath')]
1095+
#[DataProvider('dataExpandPath')]
10951096
public function testExpandPath($subject, $path, $expected)
10961097
{
10971098
$listener = $this
@@ -1206,7 +1207,7 @@ public static function dataCheckRequestMethods()
12061207
*
12071208
* @return void
12081209
*/
1209-
#[\PHPUnit\Framework\Attributes\DataProvider('dataCheckRequestMethods')]
1210+
#[DataProvider('dataCheckRequestMethods')]
12101211
public function testCheckRequestMethods($apiConfig, $exception, $requestMethods)
12111212
{
12121213
$listener = $this

tests/TestCase/Listener/RedirectListenerTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Crud\Event\Subject;
1111
use Crud\Listener\RedirectListener;
1212
use Crud\TestSuite\TestCase;
13+
use PHPUnit\Framework\Attributes\DataProvider;
1314

1415
/**
1516
* Licensed under The MIT License
@@ -456,7 +457,7 @@ public static function dataProviderGetUrl()
456457
*
457458
* @return void
458459
*/
459-
#[\PHPUnit\Framework\Attributes\DataProvider('dataProviderGetUrl')]
460+
#[DataProvider('dataProviderGetUrl')]
460461
public function testGetUrl(Subject $subject, $url, $expected)
461462
{
462463
$listener = $this

0 commit comments

Comments
 (0)