Use the correct ID when retrieving a block
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 28 May 2011 21:25:29 +0000 (21:25 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 28 May 2011 21:25:29 +0000 (21:25 +0000)
commit6642e733c6b7b548b3055f5e5ea4692fe4704b11
tree7f1fef77775652ea9c1024b84bdddf9f5257bd97
parent2a198b5f060f9890ee6e78aaf6d5d99994da2fef
Use the correct ID when retrieving a block

The ID might be different than the one you expect. Since r88755 the tables
are no more dropped and recreated, thus the autoincrement pointer is not
reset.  A previous test could have raised that pointer, thus the id might
be above the expected value.
This patch track the block ID inserted and use it in the assertion.
tests/phpunit/includes/BlockTest.php