1 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.

File

core/modules/views/tests/views_query.test, line 107
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)));
}