protected function WebformAssertLegacyTrait::assertIdenticalObject in Webform 6.x
Same name and namespace in other branches
- 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\TraitsCode
protected function assertIdenticalObject($expected, $actual, $message = '') {
// Note: ::assertSame checks whether its the same object. ::assertEquals
// though compares
$this
->assertEquals($expected, $actual, $message);
}