Commit beb410e3 authored by nepski's avatar nepski

test feedback

parent cdce78cd
......@@ -20,7 +20,6 @@ class Main extends Controller {
//create call
//start call
//end call
$f3->set('block_content', 'feedbackform.html');
}
......
<p>thank you! <3</p>
<p>{{ _("thank you! <3") }}</p>
<input type="button" value="{{ _("Call another deputy") }}"/>
......@@ -43,6 +43,23 @@ class Test_Main_Class extends BaseTest {
$this->f3->clear('ERROR'); // clear any errors
}
function test_main_get_feedbackform_return_categories_array() {
$this->f3->mock('GET /feedback/');
$this->test->expect(
is_array($this->f3->get('feedback_categories')),
"Do not get a categories array"
);
$this->f3->clear('ERROR'); // clear any errors
}
function test_main_get_feedbackform_return_contact_id() {
$this->f3->mock('GET /feedback/');
$this->test->expect(
is_numeric($this->f3->get('contact_id')),
"Do not get a numeric contact id"
);
$this->f3->clear('ERROR'); // clear any errors
}
}
// Launching tests
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment