/** * @covers \NewFrontiers\Framework\Core\Request::getArray * @covers \NewFrontiers\Framework\Core\Request::present */ public function testConstructor() { $test = ['key' => 'value']; $request = new Request($test); $this->assertCount(1, $request->getArray()); $this->assertTrue($request->present('key')); $this->assertEquals('value', $request->key); }
public function requestLink(Request $request, $keepOldRequestData = false) { // Legacy... Kann entfernt werden, wenn alles überarbeitet wurde if (isset($request->message)) { FlashMessage::info($request->message); } $requestArray = array(); if ($keepOldRequestData) { $requestArray = $request->getArray(); } if (count(Application::getInstance()->flashMessages) > 0) { $messages = serialize(Application::getInstance()->flashMessages); $requestArray['messages'] = base64_encode($messages); } return $this->appLink($request->module, $request->action, $requestArray, $request->hash); }