Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-xapi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Quentin Pimont
moodle-xapi
Commits
a7d4d5e5
Commit
a7d4d5e5
authored
7 years ago
by
David Pesce
Browse files
Options
Downloads
Patches
Plain Diff
hacked in moodle admin config setting for sendmbox
parent
339c6f77
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/TestCase.php
+8
-2
8 additions, 2 deletions
tests/TestCase.php
with
8 additions
and
2 deletions
tests/TestCase.php
+
8
−
2
View file @
a7d4d5e5
...
...
@@ -19,7 +19,7 @@ abstract class TestCase extends PhpUnitTestCase {
public
function
setup
()
{
$this
->
cfg
=
(
object
)
[
'wwwroot'
=>
'http://www.example.com'
,
'release'
=>
'1.0.0'
,
'release'
=>
'1.0.0'
];
$this
->
xapi_controller
=
new
xapi_controller
(
new
xapi_repository
(
new
xapi_remote_lrs
(
''
,
'1.0.1'
,
''
,
''
)));
$this
->
moodle_controller
=
new
moodle_controller
(
new
moodle_repository
((
object
)
[],
$this
->
cfg
));
...
...
@@ -32,6 +32,12 @@ abstract class TestCase extends PhpUnitTestCase {
$moodle_events
=
$this
->
moodle_controller
->
createEvents
([
$input
]);
$this
->
assertNotNull
(
$moodle_events
,
'Check that the events exist in the expander controller.'
);
//Hack to add Moodle plugin config setting for sendmbox - need to make config function
$moodle_events
=
[
array_merge
(
$moodle_events
[
0
],
[
'sendmbox'
=>
false
]
)];
$translator_events
=
$this
->
translator_controller
->
createEvents
(
$moodle_events
);
$this
->
assertNotNull
(
$translator_events
,
'Check that the events exist in the translator controller.'
);
...
...
@@ -61,7 +67,7 @@ abstract class TestCase extends PhpUnitTestCase {
'relateduserid'
=>
'1'
,
'courseid'
=>
'1'
,
'timecreated'
=>
1433946701
,
'eventname'
=>
'\core\event\course_viewed'
,
'eventname'
=>
'\core\event\course_viewed'
];
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment