Example #1
0
 private function constructURL()
 {
     $cat = $this->getCategory()->getCat();
     $dashed = Utility::urliseText($this->getTitle());
     $output = $cat . '/' . $this->getId() . '/' . $dashed . '/';
     // output: CAT/ID/TITLE/
     return $output;
 }
Example #2
0
 public function testUrliseText()
 {
     $title = "Tara Jane O’Neil - Where Shine New Lights";
     $url = \FelixOnline\Core\Utility::urliseText($title);
     $this->assertEquals($url, 'tara-jane-oneil---where-shine-new-lights');
 }