function SmartDefaultSettingsTest::testSurplusScore

Same name in other branches
  1. 9 core/modules/ckeditor5/tests/src/Unit/SmartDefaultSettingsTest.php \Drupal\Tests\ckeditor5\Unit\SmartDefaultSettingsTest::testSurplusScore()
  2. 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 \Drupal\ckeditor5\SmartDefaultSettings @group ckeditor5

Namespace

Drupal\Tests\ckeditor5\Unit

Code

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.