You are here

protected function WebformAssertLegacyTrait::assertIdenticalObject in Webform 6.x

Same name and namespace in other branches
  1. 8.5 tests/src/Traits/WebformAssertLegacyTrait.php \Drupal\Tests\webform\Traits\WebformAssertLegacyTrait::assertIdenticalObject()

See also

\Drupal\simpletest\TestBase::assertIdenticalObject()

File

tests/src/Traits/WebformAssertLegacyTrait.php, line 54

Class

WebformAssertLegacyTrait
Provides convenience methods for assertions in browser tests.

Namespace

Drupal\Tests\webform\Traits

Code

protected function assertIdenticalObject($expected, $actual, $message = '') {

  // Note: ::assertSame checks whether its the same object. ::assertEquals
  // though compares
  $this
    ->assertEquals($expected, $actual, $message);
}