function CKEditor5StylesheetsTest::externalStylesheetsProvider
Same name in other branches
- 9 core/modules/ckeditor5/tests/src/Kernel/CKEditor5StylesheetsTest.php \Drupal\Tests\ckeditor5\Kernel\CKEditor5StylesheetsTest::externalStylesheetsProvider()
- 11.x core/modules/ckeditor5/tests/src/Kernel/CKEditor5StylesheetsTest.php \Drupal\Tests\ckeditor5\Kernel\CKEditor5StylesheetsTest::externalStylesheetsProvider()
Provides test cases for external stylesheets.
Return value
array An array of test cases.
File
-
core/
modules/ ckeditor5/ tests/ src/ Kernel/ CKEditor5StylesheetsTest.php, line 49
Class
- CKEditor5StylesheetsTest
- Test the ckeditor5-stylesheets theme config property.
Namespace
Drupal\Tests\ckeditor5\KernelCode
public static function externalStylesheetsProvider() {
return [
'Install theme which has an absolute external CSS URL' => [
'test_ckeditor_stylesheets_external',
[
'https://fonts.googleapis.com/css?family=Open+Sans',
],
],
'Install theme which has an external protocol-relative CSS URL' => [
'test_ckeditor_stylesheets_protocol_relative',
[
'//fonts.googleapis.com/css?family=Open+Sans',
],
],
'Install theme which has a relative CSS URL' => [
'test_ckeditor_stylesheets_relative',
[
'/core/modules/system/tests/themes/test_ckeditor_stylesheets_relative/css/yokotsoko.css',
],
],
'Install theme which has a Drupal root CSS URL' => [
'test_ckeditor_stylesheets_drupal_root',
[
'/core/modules/system/tests/themes/test_ckeditor_stylesheets_drupal_root/css/yokotsoko.css',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.