Thanks to the new drupalCreateNode and a trick borrowed from the ancient weight module, this is not hard. Rename the file to pager.test

CommentFileSizeAuthor
#2 pager.test_.txt1.39 KBchx
pager.txt1.36 KBchx

Comments

vladimir.dolgopolov’s picture

Good test, but I'd add next line at the begining of testPageCreation() (to avoid unexpected result on some sites):

    $this->drupalVariableSet('default_nodes_main', 10);
chx’s picture

StatusFileSize
new1.39 KB

I did not know drupalGet supports options, simplified. Added the variable set.

boombatower’s picture

Status: Needs review » Postponed (maintainer needs more info)

This is an odd case. Since it is a functional test, but does not deal with a particular module. Instead it most closely relates to the pager.inc.

The question is by what convention should it be named?

boombatower’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Very outdated and I would guess will be covered through code coverage tests.