protected function InternalEntitiesTest::skipIfIsInternalIsNotSupported in JSON:API 8
Only run tests when Drupal version is >= 8.5.
4 calls to InternalEntitiesTest::skipIfIsInternalIsNotSupported()
- InternalEntitiesTest::testEntryPoint in tests/
src/ Functional/ InternalEntitiesTest.php - Ensures that internal resources types aren't present in the entry point.
- InternalEntitiesTest::testIncludes in tests/
src/ Functional/ InternalEntitiesTest.php - Asserts that internal entities are not included in compound documents.
- InternalEntitiesTest::testLinks in tests/
src/ Functional/ InternalEntitiesTest.php - Asserts that links to internal relationships aren't generated.
- InternalEntitiesTest::testRoutes in tests/
src/ Functional/ InternalEntitiesTest.php - Ensures that internal resources types aren't present in the routes.
File
- tests/
src/ Functional/ InternalEntitiesTest.php, line 197
Class
- InternalEntitiesTest
- Makes assertions about the JSON API behavior for internal entities.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected function skipIfIsInternalIsNotSupported() {
if (floatval(\Drupal::VERSION) < 8.5) {
$this
->markTestSkipped('The Drupal Core version must be >= 8.5');
}
}