Skip to content

Commit

Permalink
DevKit updates for 4.x branch (#7833)
Browse files Browse the repository at this point in the history
* DevKit updates

* DevKit updates

* Fix test with Symfony 6.1

see symfony/symfony#45771

Co-authored-by: Fran Moreno <[email protected]>
  • Loading branch information
SonataCI and franmomu authored May 29, 2022
1 parent a439577 commit 09d8950
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ jobs:
allowed-to-fail: false
symfony-require: 4.4.*
variant: symfony/symfony:"4.4.*"
- php-version: '8.1'
dependencies: highest
allowed-to-fail: false
symfony-require: 5.3.*
variant: symfony/symfony:"5.3.*"
- php-version: '8.1'
dependencies: highest
allowed-to-fail: false
Expand All @@ -82,6 +77,11 @@ jobs:
allowed-to-fail: false
symfony-require: 6.0.*
variant: symfony/symfony:"6.0.*"
- php-version: '8.1'
dependencies: highest
allowed-to-fail: false
symfony-require: 6.1.*
variant: symfony/symfony:"6.1.*"

steps:
- name: Checkout
Expand Down
1 change: 0 additions & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
'static_lambda' => true,
'strict_comparison' => true,
'strict_param' => true,
'types_spaces' => ['space' => 'single'],
'void_return' => false,
];

Expand Down
6 changes: 4 additions & 2 deletions tests/Form/AdminLayoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ public function testHelp(): void
$view = $form->createView();
$html = $this->renderHelp($view);

// TODO: Replace "/p|div" with "/div" when support for Symfony < 6.1 is dropped.
$expression = <<<'EOD'
/p
/p|div
[@id="name_help"]
[@class="help-block sonata-ba-field-help help-text"]
[.="[trans]Help text test![/trans]"]
Expand All @@ -128,8 +129,9 @@ public function testHelpWithAdminTranslationDomain(): void
$view = $form->createView();
$html = $this->renderHelp($view);

// TODO: Replace "/p|div" with "/div" when support for Symfony < 6.1 is dropped.
$expression = <<<'EOD'
/p
/p|div
[@id="name_help"]
[@class="help-block sonata-ba-field-help help-text"]
[.="[trans domain=sonata_translation_domain]Help text test![/trans]"]
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/Controller/CRUDControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function testCreate(): void
);
static::assertCount(
1,
$crawler->filter('p.help-block.sonata-ba-field-help:contains("Help me!")')
$crawler->filter('.help-block.sonata-ba-field-help:contains("Help me!")')
);
}

Expand Down

0 comments on commit 09d8950

Please sign in to comment.