public function PluginBaseTest::testSetOptionDefault in Drupal 8
Same name and namespace in other branches
- 9 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 65
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);
}