You are here

public function SettingsFormTest::testSettingsForm in Advanced CSS/JS Aggregation 8.4

Same name in this branch
  1. 8.4 tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg\Kernel\Form\SettingsFormTest::testSettingsForm()
  2. 8.4 advagg_ext_minify/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_ext_minify\Kernel\Form\SettingsFormTest::testSettingsForm()
  3. 8.4 advagg_old_ie_compatibility/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_old_ie_compatibility\Kernel\Form\SettingsFormTest::testSettingsForm()
  4. 8.4 advagg_mod/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_mod\Kernel\Form\SettingsFormTest::testSettingsForm()
  5. 8.4 advagg_css_minify/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_css_minify\Kernel\Form\SettingsFormTest::testSettingsForm()
  6. 8.4 advagg_js_minify/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_js_minify\Kernel\Form\SettingsFormTest::testSettingsForm()
  7. 8.4 advagg_cdn/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_cdn\Kernel\Form\SettingsFormTest::testSettingsForm()
  8. 8.4 advagg_bundler/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_bundler\Kernel\Form\SettingsFormTest::testSettingsForm()

Tests for \Drupal\advagg_cdn\Form\SettingsForm.

File

advagg_cdn/tests/src/Kernel/Form/SettingsFormTest.php, line 50

Class

SettingsFormTest
Tests the CDN settings form.

Namespace

Drupal\Tests\advagg_cdn\Kernel\Form

Code

public function testSettingsForm() {
  $this
    ->assertInstanceOf(FormInterface::class, $this->settingsForm);
  $id = $this->settingsForm
    ->getFormId();
  $this
    ->assertEquals('advagg_cdn_settings', $id);
  $method = new \ReflectionMethod(SettingsForm::class, 'getEditableConfigNames');
  $method
    ->setAccessible(TRUE);
  $name = $method
    ->invoke($this->settingsForm);
  $this
    ->assertEquals([
    'advagg_cdn.settings',
  ], $name);
}