Fix for BlockTest -- when setup ran multiple times, the block entry wouldn't get...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 15 Jun 2011 20:43:24 +0000 (20:43 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 15 Jun 2011 20:43:24 +0000 (20:43 +0000)
commit15445510ff6cffc61e95406a83b29181cecb9ffd
tree8e75e5c1e9f384a84af3ab58869cdcfece15daba
parent6286ac2971267b1ce8314ca6d8b1e752fa53f057
Fix for BlockTest -- when setup ran multiple times, the block entry wouldn't get re-saved and we'd end up with null or 0 as our block id.
By first removing any matching block, we can re-insert it at will and have a fresh working block to test.
tests/phpunit/includes/BlockTest.php