MDL-68641 core_h5p: test dropped because the tested method was deleted

This commit is contained in:
Víctor Déniz Falcón 2020-06-04 19:26:13 +01:00
parent 069ae9134f
commit 88036713a5

View File

@ -79,24 +79,6 @@ class editor_ajax_testcase extends \advanced_testcase {
$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.
*