Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
952ffbc2
Commit
952ffbc2
authored
Oct 06, 2016
by
Andrew Nicols
Browse files
MDL-56092 auth_email: Correct assumed ordering in unit test
parent
21d89211
Changes
1
Hide whitespace changes
Inline
Side-by-side
auth/email/tests/external_test.php
View file @
952ffbc2
...
...
@@ -52,10 +52,10 @@ class auth_email_external_testcase extends externallib_advanced_testcase {
$categoryid
=
$DB
->
insert_record
(
'user_info_category'
,
array
(
'name'
=>
'Cat 1'
,
'sortorder'
=>
1
));
$this
->
field1
=
$DB
->
insert_record
(
'user_info_field'
,
array
(
'shortname'
=>
'frogname'
,
'name'
=>
'Name of frog'
,
'categoryid'
=>
$categoryid
,
'datatype'
=>
'text'
,
'signup'
=>
1
,
'visible'
=>
1
,
'required'
=>
1
));
'datatype'
=>
'text'
,
'signup'
=>
1
,
'visible'
=>
1
,
'required'
=>
1
,
'sortorder'
=>
1
));
$this
->
field2
=
$DB
->
insert_record
(
'user_info_field'
,
array
(
'shortname'
=>
'sometext'
,
'name'
=>
'Some text in textarea'
,
'categoryid'
=>
$categoryid
,
'datatype'
=>
'textarea'
,
'signup'
=>
1
,
'visible'
=>
1
,
'required'
=>
1
));
'datatype'
=>
'textarea'
,
'signup'
=>
1
,
'visible'
=>
1
,
'required'
=>
1
,
'sortorder'
=>
2
));
}
public
function
test_get_signup_settings
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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