MDL-52292 block testing generators: improve the API
authorTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 24 Nov 2015 15:58:54 +0000 (15:58 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 1 Dec 2015 13:48:08 +0000 (13:48 +0000)
commiteb3884e48f40e05fdf5a7caa01fdfda4934e94ee
treea0a9caa2e6835eba58b810840a43dc118fa9053e
parentc18acb8997ce6d2896ab54872ea3126c64a8c937
MDL-52292 block testing generators: improve the API

* Refactor the block generator base class, to remove the amount
  of duplication required in base classes.

* Change the defaults that are filled in to be a little more natural.

* Make the Behat step 'Given the following "block" exist:' work.
admin/tool/behat/tests/behat/data_generators.feature
blocks/online_users/tests/generator/lib.php
lib/testing/generator/block_generator.php
lib/testing/generator/data_generator.php
lib/tests/behat/behat_data_generators.php