MDL-68645 output: Make other generators fail if they init the output too
authorDavid Mudrák <david@moodle.com>
Thu, 14 May 2020 05:55:19 +0000 (07:55 +0200)
committerDavid Mudrák <david@moodle.com>
Thu, 14 May 2020 05:55:19 +0000 (07:55 +0200)
commit866ce1fbe940713e92ba082dbdac58f92ef1f236
tree6a8aa0730227686eb2c7d7dd3c03eedf6debc23f
parent005b00dd9b84109ba7210bf2fa560b9144488318
MDL-68645 output: Make other generators fail if they init the output too

Identically to what we've added to the module generators, let's raise a
coding exception if generating a block or a repository triggers the
theme and output initialisation.
lib/testing/generator/block_generator.php
lib/testing/generator/repository_generator.php