protected function ParagraphsTestBaseTrait::coreVersion

Checks the core version.

Parameters

string $version: The core version, for example 10.2.

Return value

bool Whether the core version is higher than the requested one.

10 calls to ParagraphsTestBaseTrait::coreVersion()
ParagraphsAccessTest::testParagraphAccessCheck in paragraphs/tests/src/Functional/WidgetStable/ParagraphsAccessTest.php
Tests the Paragraph access and permissions.
ParagraphsAddWidgetTest::testAddWidgetButton in paragraphs/tests/src/FunctionalJavascript/ParagraphsAddWidgetTest.php
Tests the add widget button with modal form.
ParagraphsAddWidgetTest::testModalAddWidgetDelta in paragraphs/tests/src/FunctionalJavascript/ParagraphsAddWidgetTest.php
Test Modal add widget with hidden delta field.
ParagraphsAdministrationTest::testParagraphsCreation in paragraphs/tests/src/Functional/WidgetStable/ParagraphsAdministrationTest.php
Tests the paragraph creation.
ParagraphsClientsideButtonsTest::testAddParagraphAboveButton in paragraphs/tests/src/FunctionalJavascript/ParagraphsClientsideButtonsTest.php
Tests the "Add above" button.

... See full list

File

paragraphs/tests/src/FunctionalJavascript/ParagraphsTestBaseTrait.php, line 321

Class

ParagraphsTestBaseTrait
Test trait for Paragraphs JS tests.

Namespace

Drupal\Tests\paragraphs\FunctionalJavascript

Code

protected function coreVersion(string $version) : bool {
  return version_compare(\Drupal::VERSION, $version, '>=');
}