Files
piratepoet/mailpoet/tests/unit/Util/UrlTest.php
Jan Jakes 82aeb89854 Use strict types in tests
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00

20 lines
507 B
PHP

<?php declare(strict_types = 1);
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);
}
}