Changeset 1642
- Timestamp:
- 02/26/10 10:15:13 (5 months ago)
- Location:
- trunk/test/functional/frontend/ullTimePlugin
- Files:
-
- 2 modified
-
ullTimeBasicAsUserTest.php (modified) (1 diff)
-
ullTimeWeekSumTest.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/frontend/ullTimePlugin/ullTimeBasicAsUserTest.php
r1637 r1642 58 58 ; 59 59 60 // Go back to index, because it's hard to find the right link for today on61 // the period overview page62 60 $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') 68 65 ->isStatusCode(200) 69 66 ->with('request')->begin() -
trunk/test/functional/frontend/ullTimePlugin/ullTimeWeekSumTest.php
r1639 r1642 12 12 13 13 // TODO: rename to PeriodOverviewTest 14 // TODO: manual fixtures14 // TODO: use manual fixtures 15 15 16 16 /* … … 34 34 $b 35 35 ->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') 37 37 ->isStatusCode(200) 38 38 ->with('request')->begin() 39 39 ->isParameter('module', 'ullTime') 40 40 ->isParameter('action', 'create') 41 ->isParameter('date', '2009-10-27') 41 42 ->end() 42 43 ; … … 49 50 ->isRedirected() 50 51 ->followRedirect() 51 // TODO: Remove52 ->with('request')->begin()53 ->isParameter('module', 'ullTime')54 ->isParameter('action', 'list')55 ->end()56 52 ; 57 53 58 54 $b 59 55 ->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() 60 63 ->with('response')->begin() 61 64 ->checkElement($dgsList->get(5, 'time_total'), '5:00') 62 65 ->end() 63 66 ; 67 64 68 65 69 $b … … 75 79 $b 76 80 ->diag('create: enter two new project efforts') 77 ->setField('fields[ull_project_id]', Doctrine::getTable('UllProject')->find BySlug('introduce-ullright')->id)81 ->setField('fields[ull_project_id]', Doctrine::getTable('UllProject')->findOneBySlug('introduce-ullright')->id) 78 82 ->setField('fields[duration_seconds]','1:45') 79 83 ->click('Save and create another entry') 84 80 85 ->isRedirected() 81 86 ->followRedirect()
