diff --git a/tests/Autoloader.php b/tests/Autoloader.php index 602019b..a6e0894 100755 --- a/tests/Autoloader.php +++ b/tests/Autoloader.php @@ -79,7 +79,7 @@ final class Autoloader $class = \strtr($class, '_\\', '//'); if (\stripos($class, 'Web/Backend')) { - $class = \str_replace('Web', 'Install/Application', $class); + $class = \str_replace('Web/', 'Install/Application/', $class); } $class2 = $class; diff --git a/tests/Helper.php b/tests/Helper.php new file mode 100644 index 0000000..80dce9d --- /dev/null +++ b/tests/Helper.php @@ -0,0 +1,45 @@ +login = Text::LOREM_IPSUM[\mt_rand(0, $LOREM_COUNT - 1)]; + $account->name1 = \ucfirst(Text::LOREM_IPSUM[\mt_rand(0, $LOREM_COUNT - 1)]); + $account->name2 = \ucfirst(Text::LOREM_IPSUM[\mt_rand(0, $LOREM_COUNT - 1)]); + $account->name3 = \ucfirst(Text::LOREM_IPSUM[\mt_rand(0, $LOREM_COUNT - 1)]); + $account->tries = 0; + $account->setEmail(Email::generateEmail()); + $account->setStatus(AccountStatus::ACTIVE); + $account->setType(AccountType::USER); + + AccountMapper::create()->execute($account); + } + } +} \ No newline at end of file