Use a provider for Xff blocking tests
authorcsteipp <csteipp@wikimedia.org>
Sat, 30 Mar 2013 17:05:15 +0000 (10:05 -0700)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 14 Apr 2013 17:08:01 +0000 (17:08 +0000)
commitc38f71a3e7fd17d34c99fb7625552c0baaedc59e
treecf8a5916fef4ae6d55014f9225acbc2eef345ec6
parent467c28ec57a5fc157e0016f1316887753ef2ff07
Use a provider for Xff blocking tests

Move the block insertion to addDBData(), and use a provider to
itterate through the test strings.

This seems like the more correct way to run these tests, although it
still seems hacky, since the db isn't cleaned up after each test.

Change-Id: Ib22ce69797ec03a61b0cc330e8572865290ebd31
tests/phpunit/includes/BlockTest.php