Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1623 from alexispeter/test-internals-autogenerate
Browse files Browse the repository at this point in the history
unittests: only generate internals if necessary
  • Loading branch information
alexispeter committed Feb 2, 2015
2 parents a87d308 + 9bbe8b6 commit fe9c49e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/helpers/CMTest/library/CMTest/TestSuite.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ public function bootstrap() {
}

public function generateInternalConfig() {
if (isset(CM_Config::get()->CM_Class_Abstract->typesMaxValue)) {
return;
}
$generator = new CM_Config_Generator();
$config = new CM_Config_Node();
$config->extendWithConfig($generator->getConfigClassTypes());
Expand Down

0 comments on commit fe9c49e

Please sign in to comment.