0
0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2024-11-25 08:57:55 +00:00
salesagility_SuiteCRM/tests/acceptance/modules/EmailMan/EmailManCest.php
2023-07-18 15:53:47 +01:00

47 lines
1.2 KiB
PHP

<?php
use Faker\Generator;
#[\AllowDynamicProperties]
class EmailManCest
{
/**
* @var Generator $fakeData
*/
protected $fakeData;
/**
* @var integer $fakeDataSeed
*/
protected $fakeDataSeed;
/**
* @param AcceptanceTester $I
*/
public function _before(AcceptanceTester $I)
{
if (!$this->fakeData) {
$this->fakeData = Faker\Factory::create();
}
$this->fakeDataSeed = mt_rand(0, 2048);
$this->fakeData->seed($this->fakeDataSeed);
}
/**
* @param \AcceptanceTester $I
* @param \Step\Acceptance\ListView $listView
* @param \Step\Acceptance\EmailManTester $emailMan
*
* As an administrator I want to test outgoing mail configuration.
*/
public function testScenarioAdminEmailSettings(
\AcceptanceTester $I,
\Step\Acceptance\EmailManTester $emailMan
) {
$I->wantTo('Save an outgoing email configuration');
// Navigate to email configuration and save settings
$I->loginAsAdmin();
$emailMan->createEmailSettings();
$I->dontSee('Note: To send record assignment notifications, an SMTP server must be configured in Email Settings.');
}
}