/**
  * @covers \NewFrontiers\Framework\Core\Permalink::toUrl
  */
 public function testToUrl()
 {
     static::assertEquals('abc', Permalink::toUrl('AbC'));
     static::assertEquals('aeoeuess', Permalink::toUrl('äöüß'));
     static::assertEquals('', Permalink::toUrl('!"§$%&/'));
     static::assertEquals('ich-bin-ein-test', Permalink::toUrl('Ich    bin ein --- Test'));
 }
 public function newPage()
 {
     $this->page = new Page();
     $this->page->pa_site = $this->request->site;
     $this->page->pa_action = 'composePage';
     $this->page->save();
     if (isset($this->request->text)) {
         $this->page->pa_bezeichnung = $this->request->text;
         $this->page->pa_link = Permalink::toUrl($this->request->text);
     }
     $this->site = new Site($this->page->pa_site);
     // TODO
     Routing::resetBreadcrumbs();
     Routing::addBreadcrumb('Struktur', '/site/showSite');
     Routing::addBreadcrumb($this->site->si_bezeichnung, '/site/showPage/site/' . $this->site->id);
     Routing::addBreadcrumb('neue Seite');
 }