Skip to content
Snippets Groups Projects
Commit 6f745255 authored by Kevin Kaland's avatar Kevin Kaland
Browse files

Issue #3114541 by wizonesolutions: Fix version check.

parent e48631b7
No related branches found
No related tags found
No related merge requests found
......@@ -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.');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment