Skip to content

Commit 59cce86

Browse files
committed
fix tests after merge
1 parent c0cd293 commit 59cce86

6 files changed

Lines changed: 11 additions & 7 deletions

File tree

config/rector/cakephp54.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
declare(strict_types=1);
33

4-
use Cake\Upgrade\Rector\Set\CakePHPSetList;
4+
use Cake\Upgrade\Rector\CakePHPSetList;
55
use Rector\Config\RectorConfig;
66

77
return static function (RectorConfig $rectorConfig): void {

config/rector/sets/cakephp54.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
declare(strict_types=1);
33

4-
use Cake\Upgrade\Rector\Rector\MethodCall\DisableHydrationToUnhydratedFindRector;
4+
use Cake\Upgrade\Rector\Cake5\DisableHydrationToUnhydratedFindRector;
55
use Rector\Config\RectorConfig;
66
use Rector\Renaming\Rector\Name\RenameClassRector;
77

src/Rector/Cake5/DisableHydrationToUnhydratedFindRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace Cake\Upgrade\Rector\Rector\MethodCall;
4+
namespace Cake\Upgrade\Rector\Cake5;
55

66
use PhpParser\Node;
77
use PhpParser\Node\Expr\MethodCall;

src/Rector/CakePHPSetList.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ final class CakePHPSetList
8585
*/
8686
public const CAKEPHP_53 = __DIR__ . '/../../config/rector/sets/cakephp53.php';
8787

88+
/**
89+
* @var string
90+
*/
91+
public const CAKEPHP_54 = __DIR__ . '/../../config/rector/sets/cakephp54.php';
92+
8893
/**
8994
* @var string
9095
*/

tests/TestCase/Rector/MethodCall/DisableHydrationToUnhydratedFindRector/DisableHydrationToUnhydratedFindRectorTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
namespace Cake\Upgrade\Test\TestCase\Rector\MethodCall\DisableHydrationToUnhydratedFindRector;
55

66
use Iterator;
7+
use PHPUnit\Framework\Attributes\DataProvider;
78
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
89

910
final class DisableHydrationToUnhydratedFindRectorTest extends AbstractRectorTestCase
1011
{
11-
/**
12-
* @dataProvider provideData()
13-
*/
12+
#[DataProvider('provideData')]
1413
public function test(string $filePath): void
1514
{
1615
$this->doTestFile($filePath);

tests/TestCase/Rector/MethodCall/DisableHydrationToUnhydratedFindRector/config/configured_rule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
declare(strict_types=1);
33

4-
use Cake\Upgrade\Rector\Rector\MethodCall\DisableHydrationToUnhydratedFindRector;
4+
use Cake\Upgrade\Rector\Cake5\DisableHydrationToUnhydratedFindRector;
55
use Rector\Config\RectorConfig;
66

77
return static function (RectorConfig $rectorConfig): void {

0 commit comments

Comments
 (0)