public function SettingsFormTest::testSettingsForm in Advanced CSS/JS Aggregation 8.4
Same name in this branch
- 8.4 tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg\Kernel\Form\SettingsFormTest::testSettingsForm()
- 8.4 advagg_ext_minify/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_ext_minify\Kernel\Form\SettingsFormTest::testSettingsForm()
- 8.4 advagg_old_ie_compatibility/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_old_ie_compatibility\Kernel\Form\SettingsFormTest::testSettingsForm()
- 8.4 advagg_mod/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_mod\Kernel\Form\SettingsFormTest::testSettingsForm()
- 8.4 advagg_css_minify/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_css_minify\Kernel\Form\SettingsFormTest::testSettingsForm()
- 8.4 advagg_js_minify/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_js_minify\Kernel\Form\SettingsFormTest::testSettingsForm()
- 8.4 advagg_cdn/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_cdn\Kernel\Form\SettingsFormTest::testSettingsForm()
- 8.4 advagg_bundler/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_bundler\Kernel\Form\SettingsFormTest::testSettingsForm()
Tests for \Drupal\advagg_mod\Form\SettingsForm.
File
- advagg_mod/
tests/ src/ Kernel/ Form/ SettingsFormTest.php, line 55
Class
- SettingsFormTest
- Tests the Modifier Minification settings form.
Namespace
Drupal\Tests\advagg_mod\Kernel\FormCode
public function testSettingsForm() {
$this
->assertInstanceOf(FormInterface::class, $this->settingsForm);
$id = $this->settingsForm
->getFormId();
$this
->assertEquals('advagg_mod_settings', $id);
$method = new \ReflectionMethod(SettingsForm::class, 'getEditableConfigNames');
$method
->setAccessible(TRUE);
$name = $method
->invoke($this->settingsForm);
$this
->assertEquals([
'advagg_mod.settings',
], $name);
}