Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-teck committed Apr 11, 2024
1 parent 85aa3c1 commit 2756528
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/sut/bar/tests/src/Kernel/LayoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ final class LayoutTest extends KernelTestBase {
* Test callback.
*/
public function testTemplateRendering(): void {
// @todo Remove this once we drop support for Drupal 10.2.
if (\version_compare(\Drupal::VERSION, '10.3', '<')) {
self::markTestSkipped();
}

/** @var \Drupal\Core\Layout\LayoutInterface $layout */
$layout = $this->container->get('plugin.manager.core.layout')
Expand Down
4 changes: 4 additions & 0 deletions tests/sut/plantain/tests/src/Kernel/LibrariesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ protected function setUp(): void {
* Test callback.
*/
public function testLibraries(): void {
// @todo Remove this once we drop support for Drupal 10.2.
if (\version_compare(\Drupal::VERSION, '10.3', '<')) {
self::markTestSkipped();
}
$libraries = $this->container->get('library.discovery')
->getLibrariesByExtension('shreya');
self::assertSame(self::getExpectedLibraries(), $libraries);
Expand Down
4 changes: 4 additions & 0 deletions tests/sut/tandoor/tests/src/Kernel/LibrariesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ protected function setUp(): void {
* Test callback.
*/
public function testLibraries(): void {
// @todo Remove this once we drop support for Drupal 10.2.
if (\version_compare(\Drupal::VERSION, '10.3', '<')) {
self::markTestSkipped();
}
$libraries = $this->container->get('library.discovery')
->getLibrariesByExtension('azalea');
self::assertSame(self::getExpectedLibraries(), $libraries);
Expand Down
4 changes: 4 additions & 0 deletions tests/sut/yety/tests/src/Kernel/LibrariesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ final class LibrariesTest extends KernelTestBase {
* Test callback.
*/
public function testLibraries(): void {
// @todo Remove this once we drop support for Drupal 10.2.
if (\version_compare(\Drupal::VERSION, '10.3', '<')) {
self::markTestSkipped();
}
$libraries = $this->container->get('library.discovery')
->getLibrariesByExtension('yety');
self::assertSame(self::getExpectedLibraries(), $libraries);
Expand Down

0 comments on commit 2756528

Please sign in to comment.