mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 07:42:11 +09:00
Fix unit test error when repository name is not "rhymix"
This commit is contained in:
parent
99de7db35a
commit
a128b6e3cb
2 changed files with 5 additions and 4 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue