You are here

public function FormOptionsAttributesSelectTestCase::testOptGroupSelect in Form Options Attributes 7

File

tests/form_options_attributes.test, line 27
Tests for Form Options Attributes module

Class

FormOptionsAttributesSelectTestCase
@file Tests for Form Options Attributes module

Code

public function testOptGroupSelect() {

  // Test an optgroup select element
  $this
    ->drupalGet('form-options-attributes-test-optgroup');
  $this
    ->assertRaw('<option value="AL"  class="southeast" data-bbq-meat="pork">Alabama</option>', t('Select element with optgroup: class and data attributes found.'));
}