public function ModeManagerTest::testNormalizeMode in The CodeMirror Editor 8
Test callback.
@dataProvider getData
File
- tests/
src/ Kernel/ ModeManagerTest.php, line 78
Class
- ModeManagerTest
- A test for plugin.manager.codemirror_mode service.
Namespace
Drupal\Tests\codemirror_editor\KernelCode
public function testNormalizeMode($input, $expected_output) {
$manager = \Drupal::service('plugin.manager.codemirror_mode');
$output = $manager
->normalizeMode($input);
self::assertEquals($expected_output, $output);
}