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.

8 calls to ParagraphsTestBaseTrait::coreVersion()
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.
ParagraphsConfigTest::testContentTranslationForm in paragraphs/tests/src/Functional/WidgetStable/ParagraphsConfigTest.php
Tests content translation form translatability constraints messages.

... 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, '>=');
}