mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-68641 core_h5p: test dropped because the tested method was deleted
This commit is contained in:
parent
069ae9134f
commit
88036713a5
@ -79,24 +79,6 @@ class editor_ajax_testcase extends \advanced_testcase {
|
|||||||
$this->assertEquals($expectedlibraries, array_keys($actuallibraries));
|
$this->assertEquals($expectedlibraries, array_keys($actuallibraries));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Test that the method validateEditorToken validates an existing token.
|
|
||||||
*/
|
|
||||||
public function test_validateEditorToken(): void {
|
|
||||||
// The action param is not used at all.
|
|
||||||
$token = core::createToken('editorajax');
|
|
||||||
$wrongaction = core::createToken('wrongaction');
|
|
||||||
$badtoken = 'xkadfpuealkdjsflkajsñf';
|
|
||||||
|
|
||||||
$validtoken = $this->editorajax->validateEditorToken($token);
|
|
||||||
$invalidaction = $this->editorajax->validateEditorToken($wrongaction);
|
|
||||||
$invalidtoken = $this->editorajax->validateEditorToken($badtoken);
|
|
||||||
|
|
||||||
$this->assertTrue($validtoken);
|
|
||||||
$this->assertTrue($invalidaction);
|
|
||||||
$this->assertFalse($invalidtoken);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test that the method getTranslations retrieves the translations of several libraries.
|
* Test that the method getTranslations retrieves the translations of several libraries.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user