Check that two menu links are the same by comparing the mlid.
$link1: A menu link item.
$link2: A menu link item.
$message: The message to display along with the assertion.
TRUE if the assertion succeeded, FALSE otherwise.
protected function assertSameLink($link1, $link2, $message = '') {
return $this
->assert($link1['mlid'] == $link2['mlid'], $message ?: 'First link is identical to second link');
}