public function VariableTest::testExport in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 111 - 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));
}