MDL-43835 phpunit: Create unique starting id's for sequences.
commitfbb0c914b0e359a48295a269b5149b0eaf82436d
authorRussell Smith <mr-russ@smith2001.net>
Thu, 23 Jan 2014 23:21:52 +0000 (24 10:21 +1100)
committerRussell Smith <mr-russ@smith2001.net>
Fri, 13 Jun 2014 14:29:26 +0000 (14 00:29 +1000)
tree34a050d38f6624f6bef1d3302ff0be3742edf0cf
parent337075d17bb1d15b888867abb66682cb53c86201
MDL-43835 phpunit: Create unique starting id's for sequences.

When all starting autoincrement ids are the same, it's difficult to detect coding and testing
errors that use the incorrect id in test calls.  The classic case is cmid vs instance id.
To reduce the chance of the coding error we start sequences at different values where possible.

OUBlog installation is the case that highlighted this as it inserts a sitewide course module
at install time and cmid <> instance id in most cases.
lib/testing/classes/util.php