tamper-8.x-1.x-dev/tests/src/Functional/Plugin/Tamper/StrPosTest.php
tests/src/Functional/Plugin/Tamper/StrPosTest.php
<?php
namespace Drupal\Tests\tamper\Functional\Plugin\Tamper;
/**
* Tests the strpos plugin.
*
* @coversDefaultClass \Drupal\tamper\Plugin\Tamper\StrPos
* @group tamper
*/
class StrPosTest extends TamperPluginTestBase {
/**
* The ID of the plugin to test.
*
* @var string
*/
protected static $pluginId = 'str_pos';
/**
* {@inheritdoc}
*/
public static function formDataProvider(): array {
return [
'no values' => [
'expected' => [
'substring' => '',
],
],
'with values' => [
'expected' => [
'substring' => 'cat',
],
'edit' => [
'substring' => 'cat',
],
],
];
}
}
