Skip to content

Commit cc9f93e

Browse files
committed
Fix tests
1 parent f8e6483 commit cc9f93e

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

lib/Core/Tests/View/TwitterBootstrapViewTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Pagerfanta\View\TwitterBootstrapView;
66
use Pagerfanta\View\ViewInterface;
77

8-
final class TwitterBootstrapViewTest extends ViewTestCase
8+
class TwitterBootstrapViewTest extends ViewTestCase
99
{
1010
protected function createView(): ViewInterface
1111
{

rector.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use Rector\Config\RectorConfig;
44
use Rector\PHPUnit\CodeQuality\Rector\Class_\NarrowUnusedSetUpDefinedPropertyRector;
5+
use Rector\Privatization\Rector\Class_\FinalizeTestCaseClassRector;
56

67
return RectorConfig::configure()
78
->withPaths([
@@ -15,6 +16,10 @@
1516
NarrowUnusedSetUpDefinedPropertyRector::class => [
1617
__DIR__.'/lib/Twig/Tests/View/TwigViewIntegrationTest.php', // Tries to inline the route generator factory which is used in the mocked runtime loader
1718
],
19+
20+
FinalizeTestCaseClassRector::class => [
21+
__DIR__.'/lib/Core/Tests/View/TwitterBootstrapViewTest.php', // Test case class is extended by other Bootstrap variations
22+
],
1823
])
1924
->withImportNames(importShortClasses: false)
2025
->withPHPStanConfigs([__DIR__.'/phpstan.neon'])

0 commit comments

Comments
 (0)