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\Form\SettingsForm.
File
- tests/
src/ Kernel/ Form/ SettingsFormTest.php, line 75
Class
- SettingsFormTest
- Class for test Drupal\advagg\Form\SettingsForm.
Namespace
Drupal\Tests\advagg\Kernel\FormCode
public function testSettingsForm() {
$this
->assertInstanceOf(FormInterface::class, $this->settingsForm);
$id = $this->settingsForm
->getFormId();
$this
->assertEquals('advagg_settings', $id);
$method = new \ReflectionMethod(SettingsForm::class, 'getEditableConfigNames');
$method
->setAccessible(TRUE);
$name = $method
->invoke($this->settingsForm);
$this
->assertEquals([
'advagg.settings',
'system.performance',
], $name);
}