debian/tests/assert-thing
raw| 1 | set -e |
| 2 | |
| 3 | sudo -u www-data echo "<youtube>VuNIsY6JdUw</youtube>" | php /var/lib/mediawiki/maintenance/edit.php "YouTube" |
| 4 | |
| 5 | # HTTP tests |
| 6 | curl --silent "http://localhost/mediawiki/index.php/YouTube" |
| 7 | curl --silent "http://localhost/mediawiki/index.php/YouTube" | grep "//www.youtube-nocookie.com/embed/VuNIsY6JdUw" |