function PluginBaseTest::testSetOptionDefault
Same name in other branches
- 9 core/modules/views/tests/src/Unit/PluginBaseTest.php \Drupal\Tests\views\Unit\PluginBaseTest::testSetOptionDefault()
- 8.9.x core/modules/views/tests/src/Unit/PluginBaseTest.php \Drupal\Tests\views\Unit\PluginBaseTest::testSetOptionDefault()
- 10 core/modules/views/tests/src/Unit/PluginBaseTest.php \Drupal\Tests\views\Unit\PluginBaseTest::testSetOptionDefault()
Tests the setOptionDefault method.
@dataProvider providerTestSetOptionDefault @covers ::setOptionDefaults
Parameters
array $storage: The storage array to unpack option into.
array $definition: The definition array, defining default options.
array $expected: The expected array after unpacking
File
-
core/
modules/ views/ tests/ src/ Unit/ PluginBaseTest.php, line 67
Class
- PluginBaseTest
- @coversDefaultClass \Drupal\views\Plugin\views\PluginBase @group views
Namespace
Drupal\Tests\views\UnitCode
public function testSetOptionDefault($storage, $definition, $expected) : void {
$this->testHelperPlugin
->testSetOptionDefaults($storage, $definition);
$this->assertEquals($storage, $expected);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.