public function XmlPluginTest::testParseInvalidSlVariantKeyFieldData in TMGMT Translator Smartling 8.4
Test sl-variant parsing: invalid string (field data).
File
- tests/
src/ Kernel/ XmlPluginTest.php, line 86
Class
- XmlPluginTest
- Tests for smartling xml plugin.
Namespace
Drupal\Tests\tmgmt_smartling\KernelCode
public function testParseInvalidSlVariantKeyFieldData() {
$parsed_sl_variant = $this
->invokeMethod($this->xmlPlugin, 'parseSmartlingSlVariantKey', [
'node-1-title][0]',
]);
$this
->assertEqual($parsed_sl_variant, []);
}