1.20.x views_handlers.test protected ViewsHandlersTest::assertEqualValue($first, $handler, $message = '', $group = 'Other')

Check to see if two values are equal.

Parameters

$first: The first value to check.

views_handler $handler:

string $message: The message to display along with the assertion.

string $group: The type of assertion - examples are "Browser", "PHP".

Return value

bool: TRUE if the assertion succeeded, FALSE otherwise.

File

modules/views/tests/views_handlers.test, line 142
Definition of ViewsHandlersTest.

Class

ViewsHandlersTest
Tests abstract handlers of views.

Code

protected function assertEqualValue($first, $handler, $message = '', $group = 'Other') {
  return $this->assert($first == $handler->value, $message ? $message : t('First value is equal to second value'), $group);
}