public function SettingsHelperTest::testIsValidContentReplacementMode in Acquia Lift Connector 8.3
Same name and namespace in other branches
- 8.4 tests/src/Unit/Service/Helper/SettingsHelperTest.php \Drupal\Tests\acquia_lift\Unit\Service\Helper\SettingsHelperTest::testIsValidContentReplacementMode()
Tests the isValidContentReplacementMode() method.
@covers ::isValidContentReplacementMode
@dataProvider providerTestIsValidContentReplacementMode
Parameters
string $test_value:
boolean $expected:
File
- tests/
src/ Unit/ Service/ Helper/ SettingsHelperTest.php, line 222
Class
- SettingsHelperTest
- SettingsHelper Test.
Namespace
Drupal\Tests\acquia_lift\Unit\Service\HelperCode
public function testIsValidContentReplacementMode($test_value, $expected) {
$result = SettingsHelper::isValidContentReplacementMode($test_value);
$this
->assertEquals($expected, $result);
}