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