function ImageTestBase::providerWidth

Same name in other branches
  1. 9 core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php \Drupal\Tests\ckeditor5\FunctionalJavascript\ImageTestBase::providerWidth()

Data provider for ::testWidth().

Return value

string[][]

File

core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php, line 628

Class

ImageTestBase
@coversDefaultClass \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Image @group ckeditor5 @internal

Namespace

Drupal\Tests\ckeditor5\FunctionalJavascript

Code

public static function providerWidth() : array {
    return [
        'Image resize with percent unit (only allowed in HTML 4)' => [
            'width' => '33%',
        ],
        'Image resize with (implied) px unit' => [
            'width' => '100',
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.