From 88036713a5dc52c046b426caa86d0b9e7d611913 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20D=C3=A9niz=20Falc=C3=B3n?= Date: Thu, 4 Jun 2020 19:26:13 +0100 Subject: [PATCH] MDL-68641 core_h5p: test dropped because the tested method was deleted --- h5p/tests/editor_ajax_test.php | 18 ------------------ 1 file changed, 18 deletions(-) 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 @@ -80,24 +80,6 @@ class editor_ajax_testcase extends \advanced_testcase { } /** - * 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. * * @dataProvider get_translations_provider -- 2.11.4.GIT