jmulet / moodle-tiny_codepro

An improved code editor for tinyMCE based on codeMirror6
GNU General Public License v3.0
3 stars 4 forks source link

Missing language string for privacy provider #5

Closed djarran closed 3 months ago

djarran commented 7 months ago

The privacy provider references the 'privacy:metadata' language string that does not exist

1) core_privacy\privacy\provider_test::test_null_provider with data set "tiny_codepro" ('tiny_codepro', 'tiny_codepro\privacy\provider')
Expectation failed, debugging() was triggered.
Debugging: Invalid get_string() identifier: 'privacy:metadata' or component 'tiny_codepro'. Perhaps you are missing $string['privacy:metadata'] = ''; in /var/www/site/lib/editor/tiny/plugins/codepro/lang/en/tiny_codepro.php?
* line 356 of /lib/classes/string_manager_standard.php: call to debugging()
* line 7411 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
* line 91 of /privacy/tests/privacy/provider_test.php: call to get_string()
* line 1548 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to core_privacy\privacy\provider_test->test_null_provider()
* line 1154 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit\Framework\TestCase->runTest()
* line 81 of /lib/phpunit/classes/advanced_testcase.php: call to PHPUnit\Framework\TestCase->runBare()
* line 728 of /vendor/phpunit/phpunit/src/Framework/TestResult.php: call to advanced_testcase->runBare()
* line 904 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit\Framework\TestResult->run()
* line 675 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestCase->run()
* line 675 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestSuite->run()
* line 675 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestSuite->run()
* line 675 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestSuite->run()
* line 653 of /vendor/phpunit/phpunit/src/TextUI/TestRunner.php: call to PHPUnit\Framework\TestSuite->run()
* line 144 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit\TextUI\TestRunner->run()
* line 97 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit\TextUI\Command->run()
* line 98 of /vendor/phpunit/phpunit/phpunit: call to PHPUnit\TextUI\Command::main()
* line 122 of /vendor/bin/phpunit: call to include()

Failed asserting that 1 matches expected 0.

/var/www/site/lib/phpunit/classes/advanced_testcase.php:366
/var/www/site/privacy/tests/privacy/provider_test.php:92
/var/www/site/lib/phpunit/classes/advanced_testcase.php:81