You are here

protected function HandlerTest::assertEqualValue in Views (for Drupal 7) 8.3

Check to see if a value is the same as the value on a certain handler.

Parameters

$first: The first value to check.

Drupal\views\Plugin\views\HandlerBase $handler: The handler that has the $handler->value property to compare with first.

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.

2 calls to HandlerTest::assertEqualValue()
HandlerTest::testBreakPhrase in lib/Drupal/views/Tests/Handler/HandlerTest.php
Tests Drupal\views\Plugin\views\HandlerBase::breakPhrase() function.
HandlerTest::testBreakPhraseString in lib/Drupal/views/Tests/Handler/HandlerTest.php
Tests the breakPhraseString() method.

File

lib/Drupal/views/Tests/Handler/HandlerTest.php, line 219
Definition of Drupal\views\Tests\Handler\HandlerTest.

Class

HandlerTest
Tests abstract handlers of views.

Namespace

Drupal\views\Tests\Handler

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