public function WebformYamlTest::testEncdoe in Webform 8.5
Tests WebformYaml encode with WebformYaml::encode().
@dataProvider providerEncode
Parameters
string $yaml: The string to run through WebformYaml::encode().
string $expected: The expected result from calling the function.
See also
File
- tests/
src/ Unit/ Utility/ WebformYamlTest.php, line 142
Class
- WebformYamlTest
- Tests webform tidy utility.
Namespace
Drupal\Tests\webform\Unit\UtilityCode
public function testEncdoe($yaml, $expected) {
$result = WebformYaml::encode($yaml);
$this
->assertEquals($expected, $result);
}