function SmartDefaultSettingsTest::testSurplusScore
Same name and namespace in other branches
- 10 core/modules/ckeditor5/tests/src/Unit/SmartDefaultSettingsTest.php \Drupal\Tests\ckeditor5\Unit\SmartDefaultSettingsTest::testSurplusScore()
- 11.x core/modules/ckeditor5/tests/src/Unit/SmartDefaultSettingsTest.php \Drupal\Tests\ckeditor5\Unit\SmartDefaultSettingsTest::testSurplusScore()
@covers ::computeSurplusScore @dataProvider providerSurplusScore
File
-
core/
modules/ ckeditor5/ tests/ src/ Unit/ SmartDefaultSettingsTest.php, line 27
Class
- SmartDefaultSettingsTest
- @coversDefaultClass <a href="/api/drupal/core%21modules%21ckeditor5%21src%21SmartDefaultSettings.php/class/SmartDefaultSettings/9" title="Generates CKEditor 5 settings for existing text editors/formats." class="local">\Drupal\ckeditor5\SmartDefaultSettings</a> @group ckeditor5
Namespace
Drupal\Tests\ckeditor5\UnitCode
public function testSurplusScore(HTMLRestrictions $surplus, HTMLRestrictions $needed, int $expected) : void {
$method = self::getMethod(SmartDefaultSettings::class, 'computeSurplusScore');
$this->assertSame($expected, $method->invoke(NULL, $surplus, $needed));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.