Fix unit test error when repository name is not "rhymix"

This commit is contained in:
Kijin Sung 2023-11-02 12:44:03 +09:00
parent 99de7db35a
commit a128b6e3cb
2 changed files with 5 additions and 4 deletions

View file

@ -5,6 +5,7 @@ class TemplateTest extends \Codeception\Test\Unit
public function _before()
{
Context::init();
$this->baseurl = '/' . basename(dirname(dirname(dirname(__DIR__)))) . '/';
}
public function testIsRelativePath()
@ -48,7 +49,7 @@ class TemplateTest extends \Codeception\Test\Unit
$this->assertEquals($target, $tmpl->convertPath($source));
$source = '^/foo/bar.gif';
$target = '/rhymix/foo/bar.gif';
$target = $this->baseurl . 'foo/bar.gif';
$this->assertEquals($target, $tmpl->convertPath($source));
}