Changeset 683
- Timestamp:
- 12/06/07 18:12:20 (1 year ago)
- Files:
-
- trunk/testapp/modules/jelix_tests/controllers/urlsig.classic.php (modified) (1 diff)
- trunk/testapp/modules/jelix_tests/controllers/urlsig.classic.php (modified) (1 diff)
- trunk/testapp/modules/jelix_tests/tests/core.urls_generation.html.php (modified) (3 diffs)
- trunk/testapp/modules/jelix_tests/tests/core.urls_generation.html.php (modified) (3 diffs)
- trunk/testapp/modules/jelix_tests/tests/core.urls_parsing.html.php (modified) (3 diffs)
- trunk/testapp/modules/jelix_tests/tests/core.urls_parsing.html.php (modified) (3 diffs)
- trunk/testapp/var/config/urls.xml (modified) (1 diff)
- trunk/testapp/var/config/urls.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/testapp/modules/jelix_tests/controllers/urlsig.classic.php
r468 r683 71 71 return $this->url1('url10'); 72 72 } 73 74 function url30() { 75 $rep = $this->getResponse('html',true); 76 $content='<h1>test url 30</h1>'; 77 $rep->body->assign('MAIN',$content); 78 return $rep; 79 } 73 80 } 74 81 trunk/testapp/modules/jelix_tests/controllers/urlsig.classic.php
r468 r683 71 71 return $this->url1('url10'); 72 72 } 73 74 function url30() { 75 $rep = $this->getResponse('html',true); 76 $content='<h1>test url 30</h1>'; 77 $rep->body->assign('MAIN',$content); 78 return $rep; 79 } 73 80 } 74 81 trunk/testapp/modules/jelix_tests/tests/core.urls_generation.html.php
r513 r683 237 237 $urlList[]= array('jelix_tests~urlsig_url20', array('mois'=>'08', 'annee'=>'2007','lang'=>'fr_FR')); 238 238 $urlList[]= array('jelix_tests~urlsig_url20', array('mois'=>'08', 'annee'=>'2007')); 239 $urlList[]= array('jelix_tests~urlsig_url30', array()); 240 $urlList[]= array('jelix_tests~default_hello2', array()); 241 $urlList[]= array('jelix_tests~default_hello3', array()); 242 $urlList[]= array('jelix_tests~hello3', array()); 239 243 240 244 $trueResult=array( … … 256 260 "/index.php/articles/fr/2007/08", 257 261 "/index.php/articles/fr/2007/08", 262 "/index.php/hello", 263 "/index.php/hello2", 264 "/index.php/hello3", 265 "/index.php/hello3", 258 266 ); 259 267 … … 281 289 "/index/articles/fr/2007/08", 282 290 "/index/articles/fr/2007/08", 291 "/index/hello", 292 "/index/hello2", 293 "/index/hello3", 294 "/index/hello3", 283 295 ); 284 296 $trueResult[11]='https://'.$_SERVER['HTTP_HOST'].$trueResult[11]; trunk/testapp/modules/jelix_tests/tests/core.urls_generation.html.php
r513 r683 237 237 $urlList[]= array('jelix_tests~urlsig_url20', array('mois'=>'08', 'annee'=>'2007','lang'=>'fr_FR')); 238 238 $urlList[]= array('jelix_tests~urlsig_url20', array('mois'=>'08', 'annee'=>'2007')); 239 $urlList[]= array('jelix_tests~urlsig_url30', array()); 240 $urlList[]= array('jelix_tests~default_hello2', array()); 241 $urlList[]= array('jelix_tests~default_hello3', array()); 242 $urlList[]= array('jelix_tests~hello3', array()); 239 243 240 244 $trueResult=array( … … 256 260 "/index.php/articles/fr/2007/08", 257 261 "/index.php/articles/fr/2007/08", 262 "/index.php/hello", 263 "/index.php/hello2", 264 "/index.php/hello3", 265 "/index.php/hello3", 258 266 ); 259 267 … … 281 289 "/index/articles/fr/2007/08", 282 290 "/index/articles/fr/2007/08", 291 "/index/hello", 292 "/index/hello2", 293 "/index/hello3", 294 "/index/hello3", 283 295 ); 284 296 $trueResult[11]='https://'.$_SERVER['HTTP_HOST'].$trueResult[11]; trunk/testapp/modules/jelix_tests/tests/core.urls_parsing.html.php
r513 r683 74 74 $resultList[]= array('module'=>'jelix_tests', 'action'=>'urlsig_url20', 'mois'=>'08', 'annee'=>'2007','lang'=>'en_EN'); 75 75 $resultList[]= array('module'=>'jelix_tests', 'action'=>'urlsig_url20', 'mois'=>'08', 'annee'=>'2007','lang'=>'fr_FR'); 76 $resultList[]= array('module'=>'jelix_tests', 'action'=>'urlsig_url30'); 77 $resultList[]= array('module'=>'jelix_tests', 'action'=>'hello2'); 78 $resultList[]= array('module'=>'jelix_tests', 'action'=>'default_hello3'); 76 79 77 80 $request=array( … … 90 93 array("index.php","/articles/en/2007/08",array()), 91 94 array("index.php","/articles/fr/2007/08",array()), 95 array("index.php","/hello",array()), 96 array("index.php","/hello2",array()), 97 array("index.php","/hello3",array()), 92 98 ); 93 99 … … 120 126 array("index","/articles/en/2007/08",array()), 121 127 array("index","/articles/fr/2007/08",array()), 128 array("index","/hello",array()), 129 array("index","/hello2",array()), 130 array("index","/hello3",array()), 122 131 ); 123 132 foreach($request as $k=>$urldata){ trunk/testapp/modules/jelix_tests/tests/core.urls_parsing.html.php
r513 r683 74 74 $resultList[]= array('module'=>'jelix_tests', 'action'=>'urlsig_url20', 'mois'=>'08', 'annee'=>'2007','lang'=>'en_EN'); 75 75 $resultList[]= array('module'=>'jelix_tests', 'action'=>'urlsig_url20', 'mois'=>'08', 'annee'=>'2007','lang'=>'fr_FR'); 76 $resultList[]= array('module'=>'jelix_tests', 'action'=>'urlsig_url30'); 77 $resultList[]= array('module'=>'jelix_tests', 'action'=>'hello2'); 78 $resultList[]= array('module'=>'jelix_tests', 'action'=>'default_hello3'); 76 79 77 80 $request=array( … … 90 93 array("index.php","/articles/en/2007/08",array()), 91 94 array("index.php","/articles/fr/2007/08",array()), 95 array("index.php","/hello",array()), 96 array("index.php","/hello2",array()), 97 array("index.php","/hello3",array()), 92 98 ); 93 99 … … 120 126 array("index","/articles/en/2007/08",array()), 121 127 array("index","/articles/fr/2007/08",array()), 128 array("index","/hello",array()), 129 array("index","/hello2",array()), 130 array("index","/hello3",array()), 122 131 ); 123 132 foreach($request as $k=>$urldata){ trunk/testapp/var/config/urls.xml
r498 r683 46 46 <static name="lang" value="en_EN" /> 47 47 </url> 48 <url pathinfo="/hello" module="jelix_tests" action="urlsig_url30" /> 49 <url pathinfo="/hello2" module="jelix_tests" action="hello2" /> 50 <url pathinfo="/hello3" module="jelix_tests" action="default_hello3" /> 48 51 </classicentrypoint> 49 52 <classicentrypoint name="testnews"> trunk/testapp/var/config/urls.xml
r498 r683 46 46 <static name="lang" value="en_EN" /> 47 47 </url> 48 <url pathinfo="/hello" module="jelix_tests" action="urlsig_url30" /> 49 <url pathinfo="/hello2" module="jelix_tests" action="hello2" /> 50 <url pathinfo="/hello3" module="jelix_tests" action="default_hello3" /> 48 51 </classicentrypoint> 49 52 <classicentrypoint name="testnews">
