File tree Expand file tree Collapse file tree 4 files changed +14
-18
lines changed
tests/Functional/Frontend Expand file tree Collapse file tree 4 files changed +14
-18
lines changed Original file line number Diff line number Diff line change 30
30
strategy :
31
31
matrix :
32
32
php-version :
33
- - ' 8.0'
34
33
- ' 8.1'
35
34
- ' 8.2'
36
35
- ' 8.3'
@@ -39,30 +38,25 @@ jobs:
39
38
symfony-require : ['']
40
39
variant : [normal]
41
40
include :
42
- - php-version : ' 8.0 '
41
+ - php-version : ' 8.1 '
43
42
dependencies : lowest
44
43
allowed-to-fail : false
45
44
variant : normal
46
45
- php-version : ' 8.3'
47
46
dependencies : highest
48
47
allowed-to-fail : false
49
- symfony-require : 5.4.*
50
- variant : symfony/symfony:"5.4.*"
51
- - php-version : ' 8.3'
52
- dependencies : highest
53
- allowed-to-fail : false
54
- symfony-require : 6.3.*
55
- variant : symfony/symfony:"6.3.*"
48
+ symfony-require : 6.4.*
49
+ variant : symfony/symfony:"6.4.*"
56
50
- php-version : ' 8.3'
57
51
dependencies : highest
58
52
allowed-to-fail : false
59
- symfony-require : 6.4 .*
60
- variant : symfony/symfony:"6.4 .*"
53
+ symfony-require : 7.1 .*
54
+ variant : symfony/symfony:"7.1 .*"
61
55
- php-version : ' 8.3'
62
56
dependencies : highest
63
57
allowed-to-fail : false
64
- symfony-require : 7.0 .*
65
- variant : symfony/symfony:"7.0 .*"
58
+ symfony-require : 7.2 .*
59
+ variant : symfony/symfony:"7.2 .*"
66
60
67
61
steps :
68
62
- name : Checkout
Original file line number Diff line number Diff line change 19
19
20
20
use Rector \Config \RectorConfig ;
21
21
use Rector \Php70 \Rector \FunctionLike \ExceptionHandlerTypehintRector ;
22
+ use Rector \Php81 \Rector \Property \ReadOnlyPropertyRector ;
22
23
use Rector \PHPUnit \CodeQuality \Rector \Class_ \NarrowUnusedSetUpDefinedPropertyRector ;
23
24
use Rector \PHPUnit \CodeQuality \Rector \Class_ \PreferPHPUnitThisCallRector ;
24
25
use Rector \PHPUnit \Set \PHPUnitSetList ;
31
32
]);
32
33
33
34
$ rectorConfig ->sets ([
34
- LevelSetList::UP_TO_PHP_80 ,
35
+ LevelSetList::UP_TO_PHP_81 ,
35
36
PHPUnitSetList::PHPUNIT_90 ,
36
37
PHPUnitSetList::PHPUNIT_CODE_QUALITY ,
37
38
]);
40
41
$ rectorConfig ->importShortClasses (false );
41
42
$ rectorConfig ->skip ([
42
43
ExceptionHandlerTypehintRector::class,
44
+ ReadOnlyPropertyRector::class,
43
45
PreferPHPUnitThisCallRector::class,
44
46
NarrowUnusedSetUpDefinedPropertyRector::class,
45
47
]);
Original file line number Diff line number Diff line change 16
16
use Doctrine \ORM \EntityManagerInterface ;
17
17
use Sonata \PageBundle \Tests \App \Entity \SonataPagePage ;
18
18
use Sonata \PageBundle \Tests \App \Entity \SonataPageSite ;
19
+ use Symfony \Bundle \FrameworkBundle \KernelBrowser ;
19
20
use Symfony \Bundle \FrameworkBundle \Test \WebTestCase ;
20
- use Symfony \Component \BrowserKit \AbstractBrowser ;
21
21
use Symfony \Component \BrowserKit \Cookie ;
22
22
use Symfony \Component \HttpFoundation \Session \SessionFactoryInterface ;
23
23
use Symfony \Component \Security \Core \User \OidcUser ;
@@ -97,7 +97,7 @@ private function prepareData(): void
97
97
* Normally this would happen via an interactive login.
98
98
* Part of this logic is also copied from AbstractBrowser::loginUser().
99
99
*/
100
- private function becomeEditor (AbstractBrowser $ client ): void
100
+ private function becomeEditor (KernelBrowser $ client ): void
101
101
{
102
102
$ sessionFactory = self ::getContainer ()->get ('session.factory ' );
103
103
\assert ($ sessionFactory instanceof SessionFactoryInterface);
Original file line number Diff line number Diff line change 18
18
use Sonata \PageBundle \Tests \App \Entity \SonataPageBlock ;
19
19
use Sonata \PageBundle \Tests \App \Entity \SonataPagePage ;
20
20
use Sonata \PageBundle \Tests \App \Entity \SonataPageSite ;
21
+ use Symfony \Bundle \FrameworkBundle \KernelBrowser ;
21
22
use Symfony \Bundle \FrameworkBundle \Test \WebTestCase ;
22
- use Symfony \Component \BrowserKit \AbstractBrowser ;
23
23
use Symfony \Component \BrowserKit \Cookie ;
24
24
use Symfony \Component \HttpFoundation \Session \SessionFactoryInterface ;
25
25
@@ -366,7 +366,7 @@ private function prepareGlobalPageData(): void
366
366
* Normally this would happen via an interactive login.
367
367
* Part of this logic is also copied from AbstractBrowser::loginUser().
368
368
*/
369
- private function becomeEditor (AbstractBrowser $ client ): void
369
+ private function becomeEditor (KernelBrowser $ client ): void
370
370
{
371
371
$ sessionFactory = self ::getContainer ()->get ('session.factory ' );
372
372
\assert ($ sessionFactory instanceof SessionFactoryInterface);
You can’t perform that action at this time.
0 commit comments