Dotclear


Ignore:
Timestamp:
03/31/15 15:53:36 (11 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Behat - add a new configuration key in behat.yml file : user_id_to_not_delete
So you can use an existing dotclear installation and not delete superadmin user

Use cookie session name provide in dotclear configuration file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • features/bootstrap/FeatureContext.php

    r2931 r2984  
    4848     */ 
    4949    public function iAmLoggedInAsWithPasswordWithRememberMe($username, $password) { 
     50        $session_name = $this->getSubcontext('db')->getSessionName($this->parameters); 
     51 
    5052        $this->iAmLoggedInAsWithPassword($username, $password, true); 
    51         $this->getMink()->assertSession()->cookieExists('dcxd'); // @TODO : retrieve cookie name from config 
     53        $this->getMink()->assertSession()->cookieExists($session_name); 
    5254        $this->getMink()->assertSession()->cookieExists('dc_admin'); 
    5355    } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map