Files
piratepoet/tests/unit/Util/UrlTest.php
Jan Jakeš 54549ff037 Convert variable names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00

19 lines
479 B
PHP

<?php
namespace MailPoet\Test\Util;
use Codeception\Stub;
use MailPoet\Util\Url;
use MailPoet\WP\Functions as WPFunctions;
class UrlTest extends \MailPoetUnitTest {
public function testCurrentUrlReturnsHomeUrlOnHome() {
$homeUrl = 'http://example.com';
$urlHelper = new Url(Stub::make(new WPFunctions(), [
'homeUrl' => $homeUrl,
'addQueryArg' => '',
]));
$currentUrl = $urlHelper->getCurrentUrl();
expect($currentUrl)->equals($homeUrl);
}
}