Permalink
Browse files

добавил функциональный тест для списка проектов

  • Loading branch information...
1 parent 25824db commit c593df86f9825d4651e9a2d0017f1fe89f4cdf3c @FladeX committed Jan 4, 2012
Showing with 11 additions and 2 deletions.
  1. +11 −2 test/functional/frontend/{projectActionsTest.php → projectsActionsTest.php}
@@ -5,10 +5,10 @@
$browser = new sfTestFunctional(new sfBrowser());
$browser->
- get('/project/index')->
+ get('/projects/index')->
with('request')->begin()->
- isParameter('module', 'project')->
+ isParameter('module', 'projects')->
isParameter('action', 'index')->
end()->
@@ -17,3 +17,12 @@
checkElement('body', '!/This is a temporary page/')->
end()
;
+
+$max = sfConfig::get('app_projects_per_page');
+
+$browser->info('1 - The homepage')->
+ get('/')->
+ info(sprintf(' 1.2 - Only %s project are listed for a page', $max))->
+ with('response')->
+ checkElement('#tasksTable tbody tr', $max)
+;

0 comments on commit c593df8

Please sign in to comment.