WebAppManifestResourceTest.php 512 B

123456789101112131415161718
  1. <?php
  2. namespace Elgg\Http;
  3. use PHPUnit_Framework_TestCase as TestCase;
  4. class WebAppManifestResourceTest extends TestCase {
  5. public function testPagesExposeARelManifestLink() {
  6. $this->markTestIncomplete();
  7. // 1. Load any HTML page (e.g. the homepage)
  8. // 2. Find an element matching "link[rel=manifest]"
  9. // - Assert that such an element exists
  10. // - Assert that it has an href value
  11. // 3. Fetch the resource at the given href
  12. // - Assert that the resource is a valid web app manifest
  13. }
  14. }