Use javascript notice

[MAILPOET-2643]
This commit is contained in:
Pavel Dohnal
2020-04-07 16:41:16 +02:00
committed by Veljko V
parent f6c602d474
commit 47a9586aa7
17 changed files with 107 additions and 37 deletions

View File

@@ -39,27 +39,6 @@ class MenuTest extends \MailPoetTest {
expect($result)->false();
}
public function testItChecksMailpoetAPIKey() {
$menu = $this->getMenu();
$_REQUEST['page'] = 'mailpoet-newsletters';
$checker = Stub::make(
new ServicesChecker(),
['isMailPoetAPIKeyValid' => true],
$this
);
$menu->checkMailPoetAPIKey($checker);
expect($menu->mpApiKeyValid)->true();
$checker = Stub::make(
new ServicesChecker(),
['isMailPoetAPIKeyValid' => false],
$this
);
$menu->checkMailPoetAPIKey($checker);
expect($menu->mpApiKeyValid)->false();
}
public function testItChecksPremiumKey() {
$menu = $this->getMenu();