Browse Source

Fix tests

Jordi Boggiano 13 years ago
parent
commit
b3164de813

+ 1 - 1
src/Composer/Repository/Vcs/SvnDriver.php

@@ -64,7 +64,7 @@ class SvnDriver extends VcsDriver
      */
     public function initialize()
     {
-        $this->url = rtrim(self::normalizeUrl($this->url), '/');
+        $this->url = $this->baseUrl = rtrim(self::normalizeUrl($this->url), '/');
 
         if (false !== ($pos = strrpos($this->url, '/trunk'))) {
             $this->baseUrl = substr($this->url, 0, $pos);

+ 1 - 1
tests/Composer/Test/Repository/Vcs/SvnDriverTest.php

@@ -41,7 +41,7 @@ class SvnDriverTest extends \PHPUnit_Framework_TestCase
             ->will($this->returnValue($output));
 
         $svn = new SvnDriver('http://till:secret@corp.svn.local/repo', $console, new Config(), $process);
-        $svn->getTags();
+        $svn->initialize();
     }
 
     private function getCmd($cmd)