Add integration tests [MAILPOET-2015]

This commit is contained in:
wxa
2019-07-04 20:20:06 +03:00
committed by M. Shull
parent b174a55d07
commit d36c9b44e4
6 changed files with 161 additions and 4 deletions

View File

@ -16,6 +16,20 @@ class UrlTest extends \MailPoetTest {
$populator->up();
}
function testItReturnsTheCaptchaUrl() {
$url = Url::getCaptchaUrl();
expect($url)->notNull();
expect($url)->contains('action=captcha');
expect($url)->contains('endpoint=subscription');
}
function testItReturnsTheCaptchaImageUrl() {
$url = Url::getCaptchaImageUrl(250, 100);
expect($url)->notNull();
expect($url)->contains('action=captchaImage');
expect($url)->contains('endpoint=subscription');
}
function testItReturnsTheConfirmationUrl() {
// preview
$url = Url::getConfirmationUrl(null);