You are here

protected function ServicesViewsApiTestCase::helperButtonHasLabel in Services Views 7

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

File

tests/services_views.test, line 161

Class

ServicesViewsApiTestCase

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