Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
/*
4
 * This file is part of the symfony package.
5
 * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
 
11
$app = 'frontend';
12
$fixtures = 'fixtures/fixtures.yml';
13
if (!include(dirname(__FILE__).'/../bootstrap/functional.php'))
14
{
15
  return;
16
}
17
 
18
$browser = new sfTestFunctional(new sfBrowser());
19
 
20
ArticlePeer::doDeleteAll();
21
$category = CategoryPeer::doSelectOne(new Criteria());
22
 
23
foreach (range(1, 20) as $n)
24
{
25
  $article = new Article();
26
  $article->setTitle(sprintf('Article #%s', $n));
27
  $article->setCategory($category);
28
  $article->save();
29
}
30
 
31
$browser
32
  ->getAndCheck('pager', 'interfaces')
33
 
34
  ->with('response')->begin()
35
    ->checkElement('#pagerResults li', 10)
36
 
37
    ->checkElement('#pagerCount:contains(20)')
38
  ->end()
39
;