3 class media_ispublic_test
extends DokuWikiTest
{
6 public function test_external(){
7 $this->assertTrue(media_ispublic('http://www.example.com/foo.png'));
8 $this->assertTrue(media_ispublic('https://www.example.com/foo.png'));
9 $this->assertTrue(media_ispublic('hTTp://www.example.com/foo.png'));
10 $this->assertTrue(media_ispublic('hTTps://www.example.com/foo.png'));
13 public function test_internal(){
14 $this->assertTrue(media_ispublic('wiki:logo.png'));
15 $this->assertFalse(media_ispublic('private:logo.png'));