You are here

public function WebTestBaseTest::providerAssertFieldByName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/tests/src/Unit/WebTestBaseTest.php \Drupal\Tests\simpletest\Unit\WebTestBaseTest::providerAssertFieldByName()

Provides data for testing the assertFieldByName() helper.

Return value

array An array of values passed to the test method.

File

core/modules/simpletest/tests/src/Unit/WebTestBaseTest.php, line 24
Contains \Drupal\Tests\simpletest\Unit\WebTestBaseTest.

Class

WebTestBaseTest
@coversDefaultClass \Drupal\simpletest\WebTestBase @group simpletest

Namespace

Drupal\Tests\simpletest\Unit

Code

public function providerAssertFieldByName() {
  $data = array();
  $data[] = array(
    'select_2nd_selected',
    'test',
    '1',
    FALSE,
  );
  $data[] = array(
    'select_2nd_selected',
    'test',
    '2',
    TRUE,
  );
  $data[] = array(
    'select_none_selected',
    'test',
    '',
    FALSE,
  );
  $data[] = array(
    'select_none_selected',
    'test',
    '1',
    TRUE,
  );
  $data[] = array(
    'select_none_selected',
    'test',
    NULL,
    TRUE,
  );
  return $data;
}