public function VariableTest::testExport in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/Utility/VariableTest.php \Drupal\Tests\Component\Utility\VariableTest::testExport()
Tests exporting variables.
@dataProvider providerTestExport @covers ::export
Parameters
string $expected: The expected exported variable.
mixed $variable: The variable to be exported.
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ VariableTest.php, line 183 - Contains \Drupal\Tests\Component\Utility\VariableTest.
Class
- VariableTest
- Test variable export functionality in Variable component.
Namespace
Drupal\Tests\Component\UtilityCode
public function testExport($expected, $variable) {
$this
->assertEquals($expected, Variable::export($variable));
}