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

This commit is contained in:
Kijin Sung 2023-11-02 13:00:39 +09:00
parent a128b6e3cb
commit e7eadcc6f1

View file

@ -1274,6 +1274,7 @@ class TemplateParserV2Test extends \Codeception\Test\Unit
protected function _normalizeWhitespace(string $content): string
{
$content = preg_replace('/<!--#Template(Start|End):.+?-->\n/', '', $content);
$content = preg_replace('!(action|src)="' . preg_quote($this->baseurl, '!') . '!', '$1="/rhymix/', $content);
$result = [];
foreach (explode("\n", $content) as $line)