From 6f745255149688d2b192a24a62719c2fe109cada Mon Sep 17 00:00:00 2001
From: Kevin Kaland <kevin@wizone.solutions>
Date: Tue, 28 Apr 2020 22:35:13 +0200
Subject: [PATCH] Issue #3114541 by wizonesolutions: Fix version check.

---
 tests/src/Functional/PdfWebformPopulationTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/src/Functional/PdfWebformPopulationTest.php b/tests/src/Functional/PdfWebformPopulationTest.php
index b6fcb3a..7ea9b64 100644
--- a/tests/src/Functional/PdfWebformPopulationTest.php
+++ b/tests/src/Functional/PdfWebformPopulationTest.php
@@ -44,7 +44,7 @@ class PdfWebformPopulationTest extends FillPdfTestBase {
    */
   protected function setUp() {
     // @todo: Stop skipping this test when Webform has Drupal 9 support.
-    if (version_compare('9.0.0', \Drupal::VERSION, '>=')) {
+    if (version_compare(substr(\Drupal::VERSION, 0, 1), 9, '>=')) {
       $this->markTestSkipped('Webform is not yet compatible with Drupal 9, so skipping these tests.');
     }
 
-- 
GitLab