public function PluginBaseTest::testSetOptionDefault in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 70 - Contains \Drupal\Tests\views\Unit\PluginBaseTest.
Class
- PluginBaseTest
- @coversDefaultClass \Drupal\views\Plugin\views\PluginBase @group views
Namespace
Drupal\Tests\views\UnitCode
public function testSetOptionDefault($storage, $definition, $expected) {
$this->testHelperPlugin
->testSetOptionDefaults($storage, $definition);
$this
->assertEquals($storage, $expected);
}