public function testReserveroomdetails() { $data['intRoomId'] = '2'; $data['vchRoomname'] = 'Room 2'; $room = new Default_Model_Room(); $this->assertContains($data, $room->reserveroomdetails()); }
/** Displays the homepage with the list of rooms * * @return details of the room */ public function homepageAction() { $session = new Zend_Session_Namespace('user'); if ($session->user_id) { $room = new Default_Model_Room(); $this->view->entries = $room->getroomdetails(); } else { $this->_helper->redirector->gotoRoute(array('controller' => '')); } }
/** Displays the details of the rooms available for reservation * * @return details of the room available. * */ public function indexAction() { $this->view->entries = Default_Model_Room::reserveroomdetails(); }