Changeset 1642

Show
Ignore:
Timestamp:
02/26/10 10:15:13 (5 months ago)
Author:
klemens
Message:

Fixed ullTime functional tests

Location:
trunk/test/functional/frontend/ullTimePlugin
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/frontend/ullTimePlugin/ullTimeBasicAsUserTest.php

    r1637 r1642  
    5858; 
    5959 
    60 // Go back to index, because it's hard to find the right link for today on 
    61 // the period overview page 
    6260$b 
    63   ->diag('index: go to Project timereporting for today') 
    64 //  ->get('ullTime/index') 
    65   // check if on overview  
    66   // click project effort 
    67   ->click('Project timereporting for today') 
     61  ->diag('enter project efforts for today') 
     62  // TODO: check if on overview  
     63  // We assume, that the first link is for "today" 
     64  ->click('Project reporting') 
    6865  ->isStatusCode(200) 
    6966  ->with('request')->begin() 
  • trunk/test/functional/frontend/ullTimePlugin/ullTimeWeekSumTest.php

    r1639 r1642  
    1212 
    1313// TODO: rename to PeriodOverviewTest 
    14 // TODO: manual fixtures 
     14// TODO: use manual fixtures 
    1515 
    1616/* 
     
    3434$b 
    3535  ->diag('index: go to Timereporting for 2009-10-27') 
    36   ->get('ullTime/create/username/admin/date/2009-10-27') 
     36  ->get('ullTime/create/date/2009-10-27') 
    3737  ->isStatusCode(200) 
    3838  ->with('request')->begin() 
    3939    ->isParameter('module', 'ullTime') 
    4040    ->isParameter('action', 'create') 
     41    ->isParameter('date', '2009-10-27') 
    4142  ->end() 
    4243; 
     
    4950  ->isRedirected() 
    5051  ->followRedirect() 
    51   // TODO: Remove 
    52   ->with('request')->begin() 
    53     ->isParameter('module', 'ullTime') 
    54     ->isParameter('action', 'list') 
    55   ->end() 
    5652; 
    5753 
    5854$b 
    5955  ->diag('list: check correct working time') 
     56  // call the period manually because we don't have a referer 
     57  ->get('ullTime/list/period/october-2009') 
     58  ->with('request')->begin() 
     59    ->isParameter('module', 'ullTime') 
     60    ->isParameter('action', 'list') 
     61    ->isParameter('period', 'october-2009') 
     62  ->end()   
    6063  ->with('response')->begin() 
    6164    ->checkElement($dgsList->get(5, 'time_total'), '5:00') 
    6265  ->end() 
    6366; 
     67 
    6468 
    6569$b 
     
    7579$b 
    7680  ->diag('create: enter two new project efforts') 
    77   ->setField('fields[ull_project_id]', Doctrine::getTable('UllProject')->findBySlug('introduce-ullright')->id) 
     81  ->setField('fields[ull_project_id]', Doctrine::getTable('UllProject')->findOneBySlug('introduce-ullright')->id) 
    7882  ->setField('fields[duration_seconds]','1:45') 
    7983  ->click('Save and create another entry') 
     84   
    8085  ->isRedirected() 
    8186  ->followRedirect()