Thanks to the new drupalCreateNode and a trick borrowed from the ancient weight module, this is not hard. Rename the file to pager.test
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | pager.test_.txt | 1.39 KB | chx |
| pager.txt | 1.36 KB | chx |
Thanks to the new drupalCreateNode and a trick borrowed from the ancient weight module, this is not hard. Rename the file to pager.test
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | pager.test_.txt | 1.39 KB | chx |
| pager.txt | 1.36 KB | chx |
Comments
Comment #1
vladimir.dolgopolov commentedGood test, but I'd add next line at the begining of testPageCreation() (to avoid unexpected result on some sites):
Comment #2
chx commentedI did not know drupalGet supports options, simplified. Added the variable set.
Comment #3
boombatower commentedThis 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?
Comment #4
boombatower commentedVery outdated and I would guess will be covered through code coverage tests.