protected function ViewsTestCase::helperButtonHasLabel

3.x views_query.test protected ViewsTestCase::helperButtonHasLabel($id, $expected_label, $message = 'Label has the expected value: %label.')

Helper function to check whether a button with a certain id exists and has a certain label.

2 calls to ViewsTestCase::helperButtonHasLabel()
ViewsExposedFormTest::testExposedAdminUi in tests/views_exposed_form.test
Tests the admin interface of exposed filter and sort items.
ViewsExposedFormTest::testRenameResetButton in tests/views_exposed_form.test
Tests, whether and how the reset button can be renamed.

File

tests/views_query.test, line 108
Tests for Views query features.

Class

ViewsTestCase
Abstract class for views testing.

Code

protected function helperButtonHasLabel($id, $expected_label, $message = 'Label has the expected value: %label.') {
  return $this->assertFieldById($id, $expected_label, t($message, array('%label' => $expected_label)));
}