diff --git a/h5p/tests/editor_ajax_test.php b/h5p/tests/editor_ajax_test.php index 9ae0ae28143..c0b67348f8d 100644 --- a/h5p/tests/editor_ajax_test.php +++ b/h5p/tests/editor_ajax_test.php @@ -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. *