Skip to content
Browse files

Properly hook up passed request data before runnning the show phase

  • Loading branch information...
1 parent 8041537 commit 5292b6294cf25674bfc80a2cefe5dbbb18216951 @flack committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 test/utilities/testcase.php
View
6 test/utilities/testcase.php
@@ -114,13 +114,15 @@ public function run_handler($topic, array $args = array())
return $data;
}
- public function show_handler($data)
+ public function show_handler(&$data)
{
$handler = $data['__openpsa_testcase_handler'];
$method = '_show_' . $data['__openpsa_testcase_handler_method'];
- midcom::get('style')->enter_context(midcom_core_context::get()->id);
+ $context = midcom_core_context::get();
+ midcom::get('style')->enter_context($context->id);
ob_start();
+ $context->set_custom_key('request_data', $data);
$handler->$method($data['handler_id'], $data);
$output = ob_get_contents();
ob_end_clean();

0 comments on commit 5292b62

Please sign in to comment.
Something went wrong with that request. Please try again.