aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2015-08-31 20:31:41 +0200
committerVirtualTam <virtualtam@flibidi.net>2015-08-31 20:31:41 +0200
commit6211c498f6e0bdc6d86152e9777bcc75955a5ec4 (patch)
treef7b48317044c151609b9d8e7d476cc5014916245 /tests
parentce8e248ab04a035c2824bee6af91aed49d623a6a (diff)
parent26c503460cd2b50c2c122dba73d62e09ee04b9c8 (diff)
downloadShaarli-6211c498f6e0bdc6d86152e9777bcc75955a5ec4.tar.gz
Shaarli-6211c498f6e0bdc6d86152e9777bcc75955a5ec4.tar.zst
Shaarli-6211c498f6e0bdc6d86152e9777bcc75955a5ec4.zip
Merge pull request #326 from ArthurHoaro/bug-url
Fixes #325 - Shaarli does not recognize saved links
Diffstat (limited to 'tests')
-rwxr-xr-x[-rw-r--r--]tests/UrlTest.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/UrlTest.php b/tests/UrlTest.php
index a39630f1..c848e88e 100644..100755
--- a/tests/UrlTest.php
+++ b/tests/UrlTest.php
@@ -151,4 +151,20 @@ class UrlTest extends PHPUnit_Framework_TestCase
151 $url->cleanup() 151 $url->cleanup()
152 ); 152 );
153 } 153 }
154
155 /**
156 * Test default http scheme.
157 */
158 public function testDefaultScheme() {
159 $url = new Url(self::$baseUrl);
160 $this->assertEquals('http', $url->getScheme());
161 $url = new Url('domain.tld');
162 $this->assertEquals('http', $url->getScheme());
163 $url = new Url('ssh://domain.tld');
164 $this->assertEquals('ssh', $url->getScheme());
165 $url = new Url('ftp://domain.tld');
166 $this->assertEquals('ftp', $url->getScheme());
167 $url = new Url('git://domain.tld/push?pull=clone#checkout');
168 $this->assertEquals('git', $url->getScheme());
169 }
154} 170}