Ejemplo n.º 1
0
 public function testGetUri()
 {
     //test custom uri setting
     $x = new User();
     $this->simulateSetInaccessableProperty($x, 'uri', '/some_other_uri');
     $this->assertEquals('/some_other_uri', UrlGenerator::getURI($x));
     //test multi-word class / uri
     $y = new UserPreferenceSetting();
     $this->assertEquals('/user_preference_settings', UrlGenerator::getURI($y));
 }