<?php

$I = new SeleniumTester($scenario);
$I->am('a guest');
$I->wantTo('make sure no one could log out if not having correct cookie');
$I->setCookie('password', 'anotherwrongcookie');
$I->amOnPage('/password');
$I->sendPOST('http://manhgiay.dev/password/logOut');
$I->seeCurrentUrlEquals('/password/login');
$I->resetCookie('password');
$I->sendPOST('http://manhgiay.dev/password/logOut');
$I->seeCurrentUrlEquals('/password/login');