Example #1
0
 public function testGetPath()
 {
     $slim = new \Slim\Slim(array('view' => new \Textpress\View()));
     $textpress = new Textpress($slim, self::config());
     $textpress->init();
     $articles = $textpress->loadArticles();
     $path = $textpress->getPath(array('2012', '02', '16', 'article-slug'));
     $this->assertEquals('/2012/02/16/article-slug', $path);
 }