protected function RateWidgetSettingsTest::setUp in Rate 8.2
Overrides RateWidgetTestBase::setUp
File
- tests/
src/ Functional/ RateWidgetSettingsTest.php, line 44
Class
- RateWidgetSettingsTest
- Tests the SettingsForm form.
Namespace
Drupal\Tests\rate\FunctionalCode
protected function setUp() {
parent::setUp();
$this->settingsConfig = $this
->config('rate.settings');
$this->formBuilder = $this->container
->get('form_builder');
$options = [
[
'value' => 1,
'label' => 'Star 1',
],
[
'value' => 2,
'label' => 'Star 2',
],
[
'value' => 3,
'label' => 'Star 3',
],
[
'value' => 4,
'label' => 'Star 4',
],
[
'value' => 5,
'label' => 'Star 5',
],
];
$this->rateWidget = $this
->createRateWidget('fivestar', 'Fivestar', 'fivestar', $options, [
'node.article',
]);
}