Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
piphone-front
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
La Quadrature du Net
piphone
piphone-front
Commits
beb410e3
Commit
beb410e3
authored
Nov 22, 2014
by
nepski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test feedback
parent
cdce78cd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
app/Main.php
app/Main.php
+0
-1
templates/thankyou.html
templates/thankyou.html
+4
-1
tests/test_main.php
tests/test_main.php
+17
-0
No files found.
app/Main.php
View file @
beb410e3
...
...
@@ -20,7 +20,6 @@ class Main extends Controller {
//create call
//start call
//end call
$f3
->
set
(
'block_content'
,
'feedbackform.html'
);
}
...
...
templates/thankyou.html
View file @
beb410e3
<p>
thank you!
<
3</
p
>
<p>
{{ _("thank you!
<
3")
}}</
p
>
<input
type=
"button"
value=
"{{ _("
Call
another
deputy
")
}}"
/>
tests/test_main.php
View file @
beb410e3
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment