You are here

public function WebformOptionsHelperTest::providerConvertOptionsToString in Webform 8.5

Same name and namespace in other branches
  1. 6.x tests/src/Unit/Utility/WebformOptionsHelperTest.php \Drupal\Tests\webform\Unit\Utility\WebformOptionsHelperTest::providerConvertOptionsToString()

Data provider for testConvertOptionsToString().

See also

testConvertOptionsToString()

File

tests/src/Unit/Utility/WebformOptionsHelperTest.php, line 103

Class

WebformOptionsHelperTest
Tests webform options utility.

Namespace

Drupal\Tests\webform\Unit\Utility

Code

public function providerConvertOptionsToString() {
  $tests[] = [
    [
      99 => 99,
    ],
    [
      '99' => 99,
    ],
  ];
  $tests[] = [
    [
      99.11 => 99,
    ],
    [
      '99' => 99,
    ],
  ];
  $tests[] = [
    [
      TRUE => 99,
    ],
    [
      '1' => 99,
    ],
  ];
  return $tests;
}