Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class \course_backup\copy\copy is deprecated. Please use the copy_helper class instead. #76

Open
aspark21 opened this issue Jul 5, 2022 · 1 comment

Comments

@aspark21
Copy link
Contributor

aspark21 commented Jul 5, 2022

https://github.com/open-lms-open-source/moodle-tool_ally/blob/MOODLE_311_STABLE/tests/event_handlers_test.php#L331

tool_ally\event_handlers_test::test_course_restored
Unexpected debugging() call detected.
Debugging: Class \course_backup\copy\copy is deprecated. Please use the copy_helper class instead.

  • line 91 of /backup/util/ui/classes/copy/copy.php: call to debugging()
  • line 331 of /admin/tool/ally/tests/event_handlers_test.php: call to core_backup\copy\copy->__construct()
  • line 1545 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to tool_ally\event_handlers_test->test_course_restored()
  • line 1151 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit\Framework\TestCase->runTest()
  • line 80 of /lib/phpunit/classes/advanced_testcase.php: call to PHPUnit\Framework\TestCase->runBare()
  • line 726 of /vendor/phpunit/phpunit/src/Framework/TestResult.php: call to advanced_testcase->runBare()
  • line 903 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit\Framework\TestResult->run()
  • line 677 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestCase->run()
  • line 677 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestSuite->run()
  • line 677 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestSuite->run()
  • line 670 of /vendor/phpunit/phpunit/src/TextUI/TestRunner.php: call to PHPUnit\Framework\TestSuite->run()
  • line 143 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit\TextUI\TestRunner->run()
  • line 96 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit\TextUI\Command->run()
  • line 97 of phpvfscomposer:///vendor/phpunit/phpunit/phpunit: call to PHPUnit\TextUI\Command::main()
  • line 118 of /vendor/bin/phpunit: call to include()
    Debugging: The method \core_backup\copy\copy::create_copy() is deprecated.
    Please use the methods provided by copy_helper instead.
  • line 148 of /backup/util/ui/classes/copy/copy.php: call to debugging()
  • line 332 of /admin/tool/ally/tests/event_handlers_test.php: call to core_backup\copy\copy->create_copy()
  • line 1545 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to tool_ally\event_handlers_test->test_course_restored()
  • line 1151 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit\Framework\TestCase->runTest()
  • line 80 of /lib/phpunit/classes/advanced_testcase.php: call to PHPUnit\Framework\TestCase->runBare()
  • line 726 of /vendor/phpunit/phpunit/src/Framework/TestResult.php: call to advanced_testcase->runBare()
  • line 903 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit\Framework\TestResult->run()
  • line 677 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestCase->run()
  • line 677 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestSuite->run()
  • line 677 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestSuite->run()
  • line 670 of /vendor/phpunit/phpunit/src/TextUI/TestRunner.php: call to PHPUnit\Framework\TestSuite->run()
  • line 143 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit\TextUI\TestRunner->run()
  • line 96 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit\TextUI\Command->run()
  • line 97 of phpvfscomposer:///vendor/phpunit/phpunit/phpunit: call to PHPUnit\TextUI\Command::main()
  • line 118 of /vendor/bin/phpunit: call to include()

/var/www/html/lib/phpunit/classes/advanced_testcase.php:88
phpvfscomposer:///var/www/html/vendor/phpunit/phpunit/phpunit:97

@aspark21
Copy link
Contributor Author

aspark21 commented Jul 5, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant