Files
piratepoet/mailpoet/tests/unit/Util/UrlTest.php
Rodrigo Primo afe378ba22 Replace expect()->equals() with verify()->equals()
codeception/verify 2.1 removed support for expect()->equals() so we need
to replace it with verify()->equals().

[MAILPOET-5664]
2023-10-24 08:58:22 +03: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();
verify($currentUrl)->equals($homeUrl);
}
}