<commit_before><?php
use Faker\Generator;

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 = rand(0, 2048);
        $this->fakeData->seed($this->fakeDataSeed);
    }

    /**
     * @param \AcceptanceTester $I
     * @param \Step\Acceptance\ListView $listView
     * @param \Step\Acceptance\EmailMan $emailMan
     * @param \Helper\WebDriverHelper $webDriverHelper
     *
     * As an administrator I want to test outgoing mail configuration.
     */
    public function testScenarioAdminEmailSettings(
        \AcceptanceTester $I,
        \Step\Acceptance\EmailMan $emailMan,
        \Helper\WebDriverHelper $webDriverHelper
    ) {
        $I->wantTo('Save an outgoing email configuration');
        $I->amOnUrl(
            $webDriverHelper->getInstanceURL()
        );

        // 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.');
    }
}<commit_msg>fixing acceptance: if smtp is not set we should see a notice<commit_after><?php
use Faker\Generator;

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 = rand(0, 2048);
        $this->fakeData->seed($this->fakeDataSeed);
    }

    /**
     * @param \AcceptanceTester $I
     * @param \Step\Acceptance\ListView $listView
     * @param \Step\Acceptance\EmailMan $emailMan
     * @param \Helper\WebDriverHelper $webDriverHelper
     *
     * As an administrator I want to test outgoing mail configuration.
     */
    public function testScenarioAdminEmailSettings(
        \AcceptanceTester $I,
        \Step\Acceptance\EmailMan $emailMan,
        \Helper\WebDriverHelper $webDriverHelper
    ) {
        $I->wantTo('Save an outgoing email configuration');
        $I->amOnUrl(
            $webDriverHelper->getInstanceURL()
        );

        // Navigate to email configuration and save settings
        $I->loginAsAdmin();
        $emailMan->createEmailSettings();

        $I->see('Note: To send record assignment notifications, an SMTP server must be configured in Email Settings.');
    }
}
{'fraction_non_alphanumeric': 0.11742025937609533, 'fraction_numerical': 0.0035050823694356818, 'mean_word_length': 2.3895486935866983, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6196535', 'n_tokens_mistral': 843, 'n_tokens_neox': 825, 'n_words': 195}