You can get the current URL with $client->getResponse()->headers->get('location'), and assert it ends with /login using assertRegExp().
$this->assertRegExp('/\/login$/', $client->getResponse()->headers->get('location'));
You can get the current URL with $client->getResponse()->headers->get('location'), and assert it ends with /login using assertRegExp().
$this->assertRegExp('/\/login$/', $client->getResponse()->headers->get('location'));