function ViewsTestCase::helperButtonHasLabel
Same name in other branches
- 7.x-3.x tests/views_query.test \ViewsTestCase::helperButtonHasLabel()
Helper function to check whether a button with a certain id exists and has a certain label.
File
-
tests/
views_query.test, line 87
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,
)));
}