public function quit() { if (empty($this->getParams(true))) { $this->getView()->redirect('/conversation'); } $conversationId = (int) $this->getParams()[0]; $this->conversationModel->removeFromConversation($conversationId); $this->getView()->redirect('/conversation'); }
public function testGetAll() { $this->model = new ConversationModel(); $state = $this->model->getAll(); $this->assertNotEmpty($state); }