Quantcast
Channel: Moodle for mobile
Viewing all articles
Browse latest Browse all 8344

Moodle Mobile plugin

$
0
0
volgens y h.  

I was working on Moodle mobile application and trying to develop a new plugin, so i tried to follow instructions in the following link:http://docs.moodle.org/dev/Moodle_Mobile_Developing_a_plugin_tutorial
I am stuck on this step: "Develop the Moodle local/mod/block/... plugin" in this link:https://tracker.moodle.org/browse/MDL-30085 at this line: run "phpunit core_grade_external_testcase lib/grade/tests/externallib_test.php"

After installing phpunit, now i need to know the corresponding externallib_test.php to add in /lib/grade/tests because i tried https://github.com/jleyva/moodle/blob/15c0d73ff1ab81fdbb47862e08d1be4684c41f7b/lib/grade/tests/externallib_test.php and it didn't work. I already added to lib/db/services.php the following:

'core_grade_get_grades' => array(
'classname' => 'core_grades_external_testcase',
'methodname' => 'get_grades',
'classpath' => 'lib/grade/tests/externallib_test.php',
'description' => 'Returns grade item details and optionally student grades.',
'type' => 'read',
'capabilities'=> 'moodle/grade:view, moodle/grade:viewall',
),

'core_grade_update_grades' => array(
'classname' => 'core_grades_external_testcase',
'methodname' => 'update_grades',
'classpath' => 'lib/grade/tests/externallib_test.php',
'description' => 'Update a grade item and associated student grades.',
'type' => 'write',
'capabilities'=> '',
),

Any help is appreciated,

Thanks in advance.


Viewing all articles
Browse latest Browse all 8344

Trending Articles