35 protected function runRequest($action, $data, $addActionKey=true) {
36 return $this->runInternal($action, $data, $addActionKey, false);
44 return $this->runInternal($action, $data, $addActionKey, true);
55 private function runInternal($action, $data, $addActionKey=true, $addSender=false) {
57 $persistenceFacade->getTransaction()->rollback();
66 $request->setAction($action);
70 foreach ($data as $key => $value) {
71 $request->setValue($key, $value);
ControllerTestCase is the base class for test cases used for Controllers.
static setConfigValue($key, $value, $section)
Set a configuration value.
getControllerName()
Get the fully qualified name of the controller to test.
runRequestFromThis($action, $data, $addActionKey=true)
Make a request to the controller with the controller set as sender.
runRequest($action, $data, $addActionKey=true)
Make a request to the controller.
DatabaseTestCase is the base class for test cases that need database support.
static getNewInstance($name, $dynamicConfiguration=[])
static getInstance($name, $dynamicConfiguration=[])
TestUtil provides helper methods for testing wCMF functionality.
static simulateRequest($request)
Process a request as if it was sent to main.php.
ObjectFactory implements the service locator pattern by wrapping a Factory instance and providing sta...