Skip to content

Commit

Permalink
Fix CS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Sep 17, 2024
1 parent 0a6488a commit 99c1289
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 16 deletions.
9 changes: 5 additions & 4 deletions tests/TestCase/Action/AddActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Cake\Core\Configure;
use Cake\Routing\Router;
use Crud\TestSuite\IntegrationTestCase;
use PHPUnit\Framework\Attributes\DataProvider;

/**
* Licensed under The MIT License
Expand Down Expand Up @@ -357,7 +358,7 @@ public static function apiGetHttpMethodProvider()
* @param string $method
* @return void
*/
#[\PHPUnit\Framework\Attributes\DataProvider('apiGetHttpMethodProvider')]
#[DataProvider('apiGetHttpMethodProvider')]
public function testApiGet($method)
{
Router::createRouteBuilder('/')
Expand Down Expand Up @@ -389,7 +390,7 @@ public static function apiUpdateHttpMethodProvider()
* @param string $method
* @return void
*/
#[\PHPUnit\Framework\Attributes\DataProvider('apiUpdateHttpMethodProvider')]
#[DataProvider('apiUpdateHttpMethodProvider')]
public function testApiCreate($method)
{
$this->_eventManager->on(
Expand Down Expand Up @@ -432,7 +433,7 @@ function ($event) {
* @param string $method
* @return void
*/
#[\PHPUnit\Framework\Attributes\DataProvider('apiUpdateHttpMethodProvider')]
#[DataProvider('apiUpdateHttpMethodProvider')]
public function testApiCreateError($method)
{
$this->_eventManager->on(
Expand Down Expand Up @@ -486,7 +487,7 @@ function ($event) {
* @param string $method
* @return void
*/
#[\PHPUnit\Framework\Attributes\DataProvider('apiUpdateHttpMethodProvider')]
#[DataProvider('apiUpdateHttpMethodProvider')]
public function testApiCreateErrors($method)
{
$this->_eventManager->on(
Expand Down
3 changes: 2 additions & 1 deletion tests/TestCase/Action/Bulk/DeleteActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

use Cake\Controller\Component\FlashComponent;
use Crud\TestSuite\IntegrationTestCase;
use PHPUnit\Framework\Attributes\DataProvider;

/**
* Licensed under The MIT License
Expand Down Expand Up @@ -47,7 +48,7 @@ public static function allHttpMethodProvider()
*
* @return void
*/
#[\PHPUnit\Framework\Attributes\DataProvider('allHttpMethodProvider')]
#[DataProvider('allHttpMethodProvider')]
public function testAllRequestMethods($method)
{
$this->_eventManager->on(
Expand Down
3 changes: 2 additions & 1 deletion tests/TestCase/Action/Bulk/SetValueActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

use Cake\Controller\Component\FlashComponent;
use Crud\TestSuite\IntegrationTestCase;
use PHPUnit\Framework\Attributes\DataProvider;

/**
* Licensed under The MIT License
Expand Down Expand Up @@ -47,7 +48,7 @@ public static function allHttpMethodProvider()
*
* @return void
*/
#[\PHPUnit\Framework\Attributes\DataProvider('allHttpMethodProvider')]
#[DataProvider('allHttpMethodProvider')]
public function testAllRequestMethods($method)
{
$this->_eventManager->on(
Expand Down
3 changes: 2 additions & 1 deletion tests/TestCase/Action/Bulk/ToggleActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

use Cake\Controller\Component\FlashComponent;
use Crud\TestSuite\IntegrationTestCase;
use PHPUnit\Framework\Attributes\DataProvider;

/**
* Licensed under The MIT License
Expand Down Expand Up @@ -47,7 +48,7 @@ public static function allHttpMethodProvider()
*
* @return void
*/
#[\PHPUnit\Framework\Attributes\DataProvider('allHttpMethodProvider')]
#[DataProvider('allHttpMethodProvider')]
public function testAllRequestMethods($method)
{
$this->_eventManager->on(
Expand Down
5 changes: 3 additions & 2 deletions tests/TestCase/Action/DeleteActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

use Cake\Controller\Component\FlashComponent;
use Crud\TestSuite\IntegrationTestCase;
use PHPUnit\Framework\Attributes\DataProvider;

/**
* Licensed under The MIT License
Expand Down Expand Up @@ -44,7 +45,7 @@ public static function allHttpMethodProvider()
*
* @return void
*/
#[\PHPUnit\Framework\Attributes\DataProvider('allHttpMethodProvider')]
#[DataProvider('allHttpMethodProvider')]
public function testAllRequestMethods($method)
{
$this->_eventManager->on(
Expand Down Expand Up @@ -154,7 +155,7 @@ function ($event) {
*
* @return void
*/
#[\PHPUnit\Framework\Attributes\DataProvider('allHttpMethodProvider')]
#[DataProvider('allHttpMethodProvider')]
public function testStopBeforeRedirect()
{
$this->_eventManager->on(
Expand Down
3 changes: 2 additions & 1 deletion tests/TestCase/Action/IndexActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
namespace Crud\Test\TestCase\Action;

use Crud\TestSuite\IntegrationTestCase;
use PHPUnit\Framework\Attributes\DataProvider;

/**
* Licensed under The MIT License
Expand Down Expand Up @@ -38,7 +39,7 @@ public static function allHttpMethodProvider()
*
* @return void
*/
#[\PHPUnit\Framework\Attributes\DataProvider('allHttpMethodProvider')]
#[DataProvider('allHttpMethodProvider')]
public function testGet($method)
{
$this->_eventManager->on(
Expand Down
3 changes: 2 additions & 1 deletion tests/TestCase/Action/ViewActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
namespace Crud\Test\TestCase\Action;

use Crud\TestSuite\IntegrationTestCase;
use PHPUnit\Framework\Attributes\DataProvider;

/**
* Licensed under The MIT License
Expand Down Expand Up @@ -38,7 +39,7 @@ public static function allHttpMethodProvider()
*
* @return void
*/
#[\PHPUnit\Framework\Attributes\DataProvider('allHttpMethodProvider')]
#[DataProvider('allHttpMethodProvider')]
public function testGet($method)
{
$this->_eventManager->on(
Expand Down
9 changes: 5 additions & 4 deletions tests/TestCase/Listener/ApiListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use Crud\Listener\ApiListener;
use Crud\Test\App\Controller\BlogsController;
use Crud\TestSuite\TestCase;
use PHPUnit\Framework\Attributes\DataProvider;
use StdClass;

/**
Expand Down Expand Up @@ -412,7 +413,7 @@ public static function dataExceptionResponse()
* @param array $validationErrors
* @return void
*/
#[\PHPUnit\Framework\Attributes\DataProvider('dataExceptionResponse')]
#[DataProvider('dataExceptionResponse')]
public function testExceptionResponse(
$apiConfig,
$exceptionClass,
Expand Down Expand Up @@ -514,7 +515,7 @@ public static function dataSerializeTraitActions()
*
* @return void
*/
#[\PHPUnit\Framework\Attributes\DataProvider('dataSerializeTraitActions')]
#[DataProvider('dataSerializeTraitActions')]
public function testEnsureSerializeWithSerializeTrait($action)
{
$listener = $this
Expand Down Expand Up @@ -1091,7 +1092,7 @@ public static function dataExpandPath()
*
* @return void
*/
#[\PHPUnit\Framework\Attributes\DataProvider('dataExpandPath')]
#[DataProvider('dataExpandPath')]
public function testExpandPath($subject, $path, $expected)
{
$listener = $this
Expand Down Expand Up @@ -1206,7 +1207,7 @@ public static function dataCheckRequestMethods()
*
* @return void
*/
#[\PHPUnit\Framework\Attributes\DataProvider('dataCheckRequestMethods')]
#[DataProvider('dataCheckRequestMethods')]
public function testCheckRequestMethods($apiConfig, $exception, $requestMethods)
{
$listener = $this
Expand Down
3 changes: 2 additions & 1 deletion tests/TestCase/Listener/RedirectListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Crud\Event\Subject;
use Crud\Listener\RedirectListener;
use Crud\TestSuite\TestCase;
use PHPUnit\Framework\Attributes\DataProvider;

/**
* Licensed under The MIT License
Expand Down Expand Up @@ -456,7 +457,7 @@ public static function dataProviderGetUrl()
*
* @return void
*/
#[\PHPUnit\Framework\Attributes\DataProvider('dataProviderGetUrl')]
#[DataProvider('dataProviderGetUrl')]
public function testGetUrl(Subject $subject, $url, $expected)
{
$listener = $this
Expand Down

0 comments on commit 99c1289

Please sign in to comment.