public static function listBlogs() { /*************************************************************** * Fetch an array with all the blogs in it. */ $blogs = Application_Model_Blog::getBlogList(); return $blogs; }
public function testShowAction() { //Grab a blog file to test with, any old random one. $blogs = Application_Model_Blog::getBlogList(); if (sizeof($blogs) < 0) { return; } $params = array('action' => 'show', 'controller' => 'Blog', 'module' => 'default', 'id' => $blogs[0]['file']); $url = $this->url($this->urlizeOptions($params)); $this->dispatch($url); // assertions $this->assertModule($params['module']); $this->assertController($params['controller']); $this->assertAction($params['action']); $this->assertQueryContentContains('div#header-logo h1', 'WebAce'); }