* URL test now check for home URL instead of just 'http' * Fixed a bug where getCurrentlURL() returned a broken path * Added "I don't care about the update" button * Update skip buttons now return to the previous page
12 lines
268 B
PHP
12 lines
268 B
PHP
<?php
|
|
namespace MailPoet\Test\Util;
|
|
|
|
use MailPoet\Util\Url;
|
|
|
|
class UrlTest extends \MailPoetTest {
|
|
function testCurrentUrlReturnsHomeUrlOnHome() {
|
|
$current_url = Url::getCurrentUrl();
|
|
$home_url = home_url();
|
|
expect($current_url)->equals($home_url);
|
|
}
|
|
} |