function testReplaceLegacyTokenWithNoCookieDoesNothing()
{
$this->svc = $this->getSvcWithCookie('');
$this->dbMock->expects($this->never())->method('deleteData');
$this->svc->replaceLegacyToken($this->user123);
$this->assertNull($this->lastCookieSet);
$this->assertNull($this->session->get('code'));
}