<?php
/**
 * Here you can initialize variables that will be available to your tests.
 */

use Codeception\Util\Fixtures;

// Define a complete, valid configuration identical to that configured in the functional suite.
$mockValidModuleConfig = array(
    "create" => true,
    "delete" => true,
    "users" => array(
        "administrator" => array(
            "name" => "test.administrator",
            "email" => "test.administrator@example.com",
            "pass" => "foo",
            "roles" => array("administrator", "editor"),
            "root" => true,
        ),
        "editor" => array(
            "name" => "test.editor",
            "email" => "test.editor@example.com",
            "pass" => "foo",
            "roles" => array("editor", "moderator"),
        ),
        "moderator" => array(
            "name" => "test.moderator",
            "email" => "test.moderator@example.com",
            "pass" => "foo",
            "roles" => array("moderator"),
        ),
    ),
    "drush-alias" => "@d7.local",
);

// Define a complete, valid configuration with email addresses for some roles.
//
// NOTE: don't use admin@example.com for the administrator test user, as the
// site we're testing against has uid 1 pre-configured with this address, and
// the test user is not created.
$mockValidModuleConfigWithEmails = array_merge(
    array("emails" => array("administrator" => "administrator@example.com", "editor" => "editor@example.com")),
    $mockValidModuleConfig
);

Fixtures::add("validModuleConfig", $mockValidModuleConfig);
Fixtures::add("validModuleConfigWithEmails", $mockValidModuleConfigWithEmails);

<?php
/**
 * Here you can initialize variables that will be available to your tests.
 */

use Codeception\Util\Fixtures;

// Define a complete, valid configuration identical to that configured in the functional suite.
$mockValidModuleConfig = array(
    "create" => true,
    "delete" => true,
    "users" => array(
        "administrator" => array(
            "name" => "test.administrator",
            "email" => "test.administrator@example.com",
            "pass" => "foo",
            "roles" => array("administrator", "editor"),
            "root" => true,
        ),
        "editor" => array(
            "name" => "test.editor",
            "email" => "test.editor@example.com",
            "pass" => "foo",
            "roles" => array("editor", "moderator"),
        ),
        "moderator" => array(
            "name" => "test.moderator",
            "email" => "test.moderator@example.com",
            "pass" => "foo",
            "roles" => array("moderator"),
        ),
    ),
    "drush-alias" => "@d7.local",
);
Fixtures::add("validModuleConfig", $mockValidModuleConfig);

Remove module config with emails fixture
Remove module config with emails fixture
