<commit_before><?php

include(dirname(__FILE__).'/../../bootstrap/functional.php');

$browser = new DarwinTestFunctional(new sfBrowser());
$browser->loadData($configuration)->login('root','evil');

$browser->
  info('Index')->
  get('/expedition/index')->
  with('response')->
  begin()->
    isStatusCode()->
    checkElement('h1', 'Expedition List')->
    checkElement('#searchExpedition_name', '')->
    checkElement('#searchExpedition_from_date_day > option:first_element', 'dd')->
    checkElement('#searchExpedition_from_date_month > option:first_element', 'mm')->
    checkElement('#searchExpedition_from_date_year > option:first_element', 'yyyy')->
    checkElement('#searchExpedition_to_date_day > option:first_element', 'dd')->
    checkElement('#searchExpedition_to_date_month > option:first_element', 'mm')->
    checkElement('#searchExpedition_to_date_year > option:first_element', 'yyyy')->
    checkElement('form input[type="submit"]', 1)->
    setField('#searchExpedition_from_date_month', '10')->
  end()->
  click('#expedition_search', 
        array('search_expedition' => array('name'=>'',
                                           'from_date'=>array('day'=>'',
                                                              'month'=>'10',
                                                              'year'=>''
                                                             )
                                          )
             )
       )->
  with('form')->
  begin()->
    hasErrors(1)->
    isError('from_date', 'Year missing.')->
  end();
<commit_msg>  - I've even tested this code, but still doesn't work... Pleas help me B!<commit_after><?php

include(dirname(__FILE__).'/../../bootstrap/functional.php');

$browser = new DarwinTestFunctional(new sfBrowser());
$browser->loadData($configuration)->login('root','evil');

$browser->
  info('Index')->
  get('/expedition/index')->
  with('response')->
  begin()->
    isStatusCode()->
    checkElement('h1', 'Expedition List')->
    checkElement('#searchExpedition_name', '')->
    checkElement('#searchExpedition_from_date_day > option:first_element', 'dd')->
    checkElement('#searchExpedition_from_date_month > option:first_element', 'mm')->
    checkElement('#searchExpedition_from_date_year > option:first_element', 'yyyy')->
    checkElement('#searchExpedition_to_date_day > option:first_element', 'dd')->
    checkElement('#searchExpedition_to_date_month > option:first_element', 'mm')->
    checkElement('#searchExpedition_to_date_year > option:first_element', 'yyyy')->
    checkElement('form input[type="submit"]', 1)->
    setField('#searchExpedition_from_date_month', '10')->
  end()->
  info('Post waiting for a "Year missing" error')->
  post('/expedition/search?searchExpedition[from_date][month]=10')->
  with('response')->
  begin()->
    isStatusCode()->
    checkElement('#error_list li', 1)->
  end();  
  
{'fraction_non_alphanumeric': 0.17803030303030304, 'fraction_numerical': 0.0048209366391184574, 'mean_word_length': 3.284660766961652, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 70, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 9, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7385721', 'n_tokens_mistral': 823, 'n_tokens_neox': 809, 'n_words': 123}