Changeset 1249
- Timestamp:
- 01/16/08 18:09:38 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisProcessor.php
r1248 r1249 291 291 } 292 292 293 // check for user data294 if ($this->session->hasValue('_userData') === true) {295 $this->template->addGlobalVars($this->session->getValue('_userData'), 'USER_');296 }297 298 293 // add meta information to the page 299 294 foreach ($this->config->getMetaTags() as $key => $value) { trunk/src/test/php/net/stubbles/websites/memphis/stubMemphisProcessorTestCase.php
r1248 r1249 739 739 $this->mockMemphisTemplate->expectAt(0, 'addVar', array('frame', 'META_description', 'This is a description.')); 740 740 $this->mockMemphisTemplate->expectAt(1, 'addVar', array('frame', 'META_keywords', 'keyword1, keyword2')); 741 $this->mockMemphisTemplate->expectNever('addGlobalVars');742 $this->mockSession->setReturnValue('hasValue', false);743 741 $this->mockSession->setReturnValue('getName', 'sessionid'); 744 742 $this->mockSession->setReturnValue('getId', 313); … … 766 764 $this->mockMemphisTemplate->expectAt(8, 'addGlobalVar', array('SSL_MODE', 'no')); 767 765 $this->mockMemphisTemplate->expectNever('addVar'); 768 $this->mockMemphisTemplate->expectOnce('addGlobalVars', array(array('name' => 'mikey'), 'USER_')); 769 $this->mockSession->setReturnValue('hasValue', true); 770 $this->mockSession->setReturnValueAt(0, 'getValue', 'variant'); 771 $this->mockSession->setReturnValueAt(1, 'getValue', array('name' => 'mikey')); 766 $this->mockSession->setReturnValue('getValue', 'variant'); 772 767 $this->mockSession->setReturnValue('getName', 'sessionid'); 773 768 $this->mockSession->setReturnValue('getId', 313);
