Skip to content

Commit

Permalink
rector
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Dec 16, 2024
1 parent 23ead54 commit 3d38aad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodRector;
use Rector\DeadCode\Rector\If_\RemoveAlwaysTrueIfConditionRector;
use Rector\PHPUnit\CodeQuality\Rector\MethodCall\AssertEqualsToSameRector;
use Rector\Privatization\Rector\ClassMethod\PrivatizeFinalClassMethodRector;

return RectorConfig::configure()
Expand All @@ -23,7 +24,10 @@
RemoveUnusedPrivateMethodRector::class => [
__DIR__ . '/tests/N98/Magento/Command/System/Setup/IncrementalCommandTest.php',
],
PrivatizeFinalClassMethodRector::class => [
AssertEqualsToSameRector::class => [
__DIR__ . 'tests/N98/Util/Console/Helper/DatabaseHelperTest.php',
],
PrivatizeFinalClassMethodRector::class => [
__DIR__ . '/tests/N98/Magento/Command/System/Setup/IncrementalCommandTest.php',
],
])
Expand Down
1 change: 1 addition & 0 deletions tests/N98/Util/Console/Helper/DatabaseHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public function testGetMysqlVariable()
// behavior with existent session variable (INTEGER)
$databaseHelper->getConnection()->query('SET @existent = 14;');
$actual = $databaseHelper->getMysqlVariable('existent', '@');
/** @noRector */
$this->assertEquals(14, $actual);

// behavior with non-existent session variable
Expand Down

0 comments on commit 3d38aad

Please sign in to comment.