/** * When a token is not valid we get an error 400, NOT 404 * * @param \Step\Api\TokenUser $I */ public function fileNotFoundPage(\Step\Api\TokenUser $I) { $I->am('a file owner'); $I->wantTo('insert a file in a forum'); $I->amGoingTo("send a bogus token"); $I->expectTo("be redirected to an error 400 page"); $I->haveHttpHeader('Accept', $this->browserHeader); $I->sendGET($this->apiUrl . '1AmaW1cK3d70k3N'); $I->seeResponseCodeIs(400); $I->seeHttpHeader('Content-type', 'text/html; charset=UTF-8'); }