Skip to content

Commit

Permalink
Merge pull request Sylius#8119 from stevemoreau/master
Browse files Browse the repository at this point in the history
Fix wrong assertion which prevented default admin user creation
  • Loading branch information
lchrusciel committed May 31, 2017
2 parents 54d2722 + 348a156 commit 2e2fa2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sylius/Bundle/CoreBundle/Command/SetupCommand.php
Expand Up @@ -106,7 +106,7 @@ private function configureNewUser(AdminUserInterface $user, InputInterface $inpu
$userRepository = $this->get('sylius.repository.admin_user');

if ($input->getOption('no-interaction')) {
Assert::notNull($userRepository->findOneByEmail('sylius@example.com'));
Assert::null($userRepository->findOneByEmail('sylius@example.com'));

$user->setEmail('sylius@example.com');
$user->setPlainPassword('sylius');
Expand Down

0 comments on commit 2e2fa2e

Please sign in to comment.