muskie9

MyTestController::config()->get('allowed_actions') is returning ['handleAction', 'handleIndex'] with the below:

  1. class MyTestController extends Controller implements TestOnly
  2. {
  3. private static $allowed_actions = ['MyActionOne', 'MyActionTwo'];
  4. }
muskie9

would there be any reason a test only controller class wouldn't track private statics on it, i.e. $allowed_actions

muskie9

that (SS3 on 7.3) I'm not sure works... but haven't tested... we went to 7.2 and are starting the upgrade talks w/those clients

muskie9

we retrofitted some of ours to work with 7.2 and most of the others we've used seemed to have at least a fork with a compatible branch

muskie9

maybe it was modules that were giving us issues with Object calls

muskie9

I think it runs on 7.2 from what we've seen, as far as it relates to the constraint it might not be "supported"

muskie9

you could try having a very similar include, but for the VirtualPage class... in the main templates/layouts calling the <% include %> could check for the class of the page being loaded:

  1. template or layout
  2. <% if $CopyContentFrom.ClassName = "VirtualPage" %>
  3. <% include MyVirtualPageInclude %>
  4. <% else %>
  5. <% include MyGenericInclude %>
  6. <% end_if %>