Convert throttling timeout from seconds to a human-readable string [MAILPOET-2015]

This commit is contained in:
wxa
2019-07-19 12:48:21 +03:00
committed by M. Shull
parent 3fbaf8cf3e
commit cfb108d240
4 changed files with 27 additions and 3 deletions

View File

@@ -608,7 +608,7 @@ class SubscribersTest extends \MailPoetTest {
]);
$this->fail('It should not be possible to subscribe a second time so soon');
} catch (\Exception $e) {
expect($e->getMessage())->equals('You need to wait 60 seconds before subscribing again.');
expect($e->getMessage())->equals('You need to wait 1 minutes before subscribing again.');
}
}
@@ -635,7 +635,7 @@ class SubscribersTest extends \MailPoetTest {
]);
$this->fail('It should not be possible to resubscribe a second time so soon');
} catch (\Exception $e) {
expect($e->getMessage())->equals('You need to wait 60 seconds before subscribing again.');
expect($e->getMessage())->equals('You need to wait 1 minutes before subscribing again.');
}
}