Same name in this branch
  1. 8.x-4.x advagg_old_ie_compatibility/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_old_ie_compatibility\Kernel\Form\SettingsFormTest
  2. 8.x-4.x advagg_bundler/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_bundler\Kernel\Form\SettingsFormTest
  3. 8.x-4.x advagg_js_minify/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_js_minify\Kernel\Form\SettingsFormTest
  4. 8.x-4.x advagg_cdn/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_cdn\Kernel\Form\SettingsFormTest
  5. 8.x-4.x tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg\Kernel\Form\SettingsFormTest
  6. 8.x-4.x advagg_ext_minify/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_ext_minify\Kernel\Form\SettingsFormTest
  7. 8.x-4.x advagg_mod/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_mod\Kernel\Form\SettingsFormTest
Same name in other branches
  1. 5.0.x advagg_old_ie_compatibility/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_old_ie_compatibility\Kernel\Form\SettingsFormTest
  2. 5.0.x advagg_bundler/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_bundler\Kernel\Form\SettingsFormTest
  3. 5.0.x advagg_css_minify/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_css_minify\Kernel\Form\SettingsFormTest
  4. 5.0.x advagg_js_minify/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_js_minify\Kernel\Form\SettingsFormTest
  5. 5.0.x advagg_cdn/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_cdn\Kernel\Form\SettingsFormTest
  6. 5.0.x tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg\Kernel\Form\SettingsFormTest
  7. 5.0.x advagg_ext_minify/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_ext_minify\Kernel\Form\SettingsFormTest
  8. 5.0.x advagg_mod/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_mod\Kernel\Form\SettingsFormTest
  9. 6.0.x advagg_bundler/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_bundler\Kernel\Form\SettingsFormTest
  10. 6.0.x advagg_css_minify/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_css_minify\Kernel\Form\SettingsFormTest
  11. 6.0.x advagg_js_minify/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_js_minify\Kernel\Form\SettingsFormTest
  12. 6.0.x tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg\Kernel\Form\SettingsFormTest
  13. 6.0.x advagg_ext_minify/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_ext_minify\Kernel\Form\SettingsFormTest
  14. 6.0.x advagg_mod/tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg_mod\Kernel\Form\SettingsFormTest

Tests the CSS Minify settings form.

@group advagg

Hierarchy

  • class \Drupal\Tests\advagg_css_minify\Kernel\Form\SettingsFormTest extends \Drupal\KernelTests\KernelTestBase

Expanded class hierarchy of SettingsFormTest

File

advagg_css_minify/tests/src/Kernel/Form/SettingsFormTest.php, line 14

Namespace

Drupal\Tests\advagg_css_minify\Kernel\Form
View source
class SettingsFormTest extends KernelTestBase {
    
    /**
     * The CSS Minify settings form object under test.
     *
     * @var \Drupal\advagg_css_minify\Form\SettingsForm
     */
    protected $settingsForm;
    
    /**
     * Modules to enable.
     *
     * @var array
     */
    protected static $modules = [
        'system',
        'advagg',
        'advagg_css_minify',
    ];
    
    /**
     * {@inheritdoc}
     *
     * @covers ::__construct
     */
    protected function setUp() {
        parent::setUp();
        $this->installConfig(static::$modules);
        $this->settingsForm = SettingsForm::create($this->container);
    }
    
    /**
     * Tests for \Drupal\advagg_css_minify\Form\SettingsForm.
     */
    public function testSettingsForm() {
        $this->assertInstanceOf(FormInterface::class, $this->settingsForm);
        $id = $this->settingsForm
            ->getFormId();
        $this->assertEquals('advagg_css_minify_settings', $id);
        $method = new \ReflectionMethod(SettingsForm::class, 'getEditableConfigNames');
        $method->setAccessible(TRUE);
        $name = $method->invoke($this->settingsForm);
        $this->assertEquals([
            'advagg_css_minify.settings',
        ], $name);
    }

}

Members

Title Sort descending Modifiers Object type Summary
SettingsFormTest::$modules protected static property Modules to enable.
SettingsFormTest::$settingsForm protected property The CSS Minify settings form object under test.
SettingsFormTest::setUp protected function @covers ::__construct
SettingsFormTest::testSettingsForm public function Tests for \Drupal\advagg_css_minify\Form\SettingsForm.