migrate_spip-1.0.0/tests/src/Kernel/SpipRichText/PreFormatedCodeTest.php
tests/src/Kernel/SpipRichText/PreFormatedCodeTest.php
<?php
declare(strict_types = 1);
namespace Drupal\Tests\migrate_spip\Kernel\SpipRichText;
/**
* Test SPIP rich text "preformated_code" plugin.
*
* @group migrate_spip
*/
final class PreFormatedCodeTest extends TestBase {
/**
* {@inheritdoc}
*/
public static function applyProvider(): array {
return [
[
'`Computing <strong>code</strong>`',
'<code>Computing <strong>code</strong></code>',
],
[
"```\nPreformatted <strong>code</strong>\n```",
'<pre><code>Preformatted <strong>code</strong></code></pre>',
],
];
}
/**
* {@inheritdoc}
*/
protected function getPluginId(): string {
return 'preformated_code';
}
}
