You are here

public function ModeManagerTest::getData in The CodeMirror Editor 8

Data provider for testNormalizeMode().

Return value

array Mock data set.

File

tests/src/Kernel/ModeManagerTest.php, line 90

Class

ModeManagerTest
A test for plugin.manager.codemirror_mode service.

Namespace

Drupal\Tests\codemirror_editor\Kernel

Code

public function getData() {
  return [
    [
      'text/x-sql',
      'text/x-sql',
    ],
    [
      'PHP',
      'text/x-php',
    ],
    [
      'html',
      'text/html',
    ],
    [
      'missing/mode',
      'missing/mode',
    ],
  ];
}