Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moodlehq/moodle-exttests
Test files for phpunit tests using external data
https://github.com/moodlehq/moodle-exttests
Last synced: about 2 months ago
JSON representation
Test files for phpunit tests using external data
- Host: GitHub
- URL: https://github.com/moodlehq/moodle-exttests
- Owner: moodlehq
- License: gpl-3.0
- Created: 2013-09-27T08:42:07.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2024-01-26T18:16:49.000Z (12 months ago)
- Last Synced: 2024-01-26T19:31:38.725Z (12 months ago)
- Language: HTML
- Size: 638 KB
- Stars: 2
- Watchers: 25
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Test files for external Moodle tests
====================================[![Test and publish](https://github.com/moodlehq/moodle-exttests/actions/workflows/test_buildx_and_publish.yml/badge.svg?branch=main)](https://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml)
**It's really important to keep these files completely unmodified in order to obtain coherent test results in all supported Moodle versions.**
Installation:
1. clone this repository or download to your local web sever without any line-endings conversion
2. edit config.php to include: define('TEST_EXTERNAL_FILES_HTTP_URL', 'http://localhost/moodle-exttests');
3. optionally configure SSL on your test server and define('TEST_EXTERNAL_FILES_HTTPS_URL', 'https://localhost/moodle-exttests');This folder contains several files that are used for unit testing
Moodle download capabilities.File specs:
* test.html: One test valid xhtml file containing UTF-8 chars and differend linefeeds mixed (unix, dos, mac).
* md5: 47250a973d1b88d9445f94db4ef2c97a
* size: 3137* test.jpg: One test binary (image) file.
* md5: 2af180e813dc3f446a9bb7b6af87ce24
* size: 39476* downloadtests.zip: One zipped folder containing the previous two files (test.html and test.jpg) to be used to test the componentlib install functions.
* md5: 9e94f74b3efb1ff6cf075dc6b2abf15c
*size: 39481* downloadtests.md5 : One text file, required by componentlib in order to download the previous zip file.
* md5: fde140a6d13cb0c671b1b9d190bf41ee
* size: 47* rsstest.xml: One valid rss feed.
* md5: 8fd047914863bf9b3a4b1514ec51c32c
* size: 32188That's all, happy Unit Testing!
20071222 stronk7: initial version
20071230 stronk7: added rss test file