static function validateRequestFromConfiguration($queueName = 'default', $includeTargetUrl = null, $sslEnabled = null, $domainAlias = null, $language = null, $layoutName = null)
 {
     if ($queueName == null) {
         throw new InvalidArgumentException("Queue name is required");
     }
     $queue = QueueFactory::createQueueFromConfiguration($queueName);
     return SessionValidationController::validateRequestFromQueue($queue, $includeTargetUrl, $sslEnabled, $domainAlias, $language, $layoutName);
 }
Esempio n. 2
0
 public function testGetLandingPageUrlTargetUrl()
 {
     $expectedTarget = "http://target.url/?someprop=somevalue&another=value";
     $expectedLandingPageUrl = "http://www.mysplitpage.com/?t=http%3A%2F%2Ftarget.url%2F%3Fsomeprop%3Dsomevalue%26another%3Dvalue";
     $queue = QueueFactory::createQueueFromConfiguration("queue1");
     $actualLandingPageUrl = $queue->getLandingPageUrl($expectedTarget);
     $this->assertEquals($expectedLandingPageUrl, $actualLandingPageUrl);
 }