function ViewsTestCase::helperButtonHasLabel

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 122

Class

ViewsTestCase

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,
    )));
}