* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ $app = 'frontend'; $fixtures = 'fixtures/fixtures.yml'; if (!include(dirname(__FILE__).'/../bootstrap/functional.php')) { return; } $browser = new sfTestFunctional(new sfBrowser()); ArticlePeer::doDeleteAll(); $category = CategoryPeer::doSelectOne(new Criteria()); foreach (range(1, 20) as $n) { $article = new Article(); $article->setTitle(sprintf('Article #%s', $n)); $article->setCategory($category); $article->save(); } $browser ->getAndCheck('pager', 'interfaces') ->with('response')->begin() ->checkElement('#pagerResults li', 10) ->checkElement('#pagerCount:contains(20)') ->end() ;