You are here

public function FormOptionsAttributesSelectTestCase::testCheckboxes in Form Options Attributes 7

File

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

Class

FormOptionsAttributesSelectTestCase
@file Tests for Form Options Attributes module

Code

public function testCheckboxes() {

  // Test a checkboxes element
  $this
    ->drupalGet('form-options-attributes-test');
  $this
    ->assertRaw('<input class="southeast form-checkbox" data-bbq-meat="pork" type="checkbox" id="edit-states-checkboxes-al" name="states_checkboxes[AL]" value="AL" />', t('Checkboxes element: class and data attributes found.'));
}