You are here

protected function CommerceCheckoutLoginUserRegisterTest::testNoUserCreatedIfUserLoggedInWhileRegistering in Commerce Checkout Login 7.2

File

tests/CommerceCheckoutLoginUserRegisterTest.test, line 105

Class

CommerceCheckoutLoginUserRegisterTest
Checkout register test class.

Code

protected function testNoUserCreatedIfUserLoggedInWhileRegistering() {
  $userToRegister = $this
    ->getValidUserToRegister();
  $this
    ->submitRegisterForm($userToRegister->name, $userToRegister->mail);
  $current_url = $this
    ->getUrl();
  $this
    ->drupalLogin($this->storeCustomerAccount);
  $this
    ->drupalGet($current_url);
  $this
    ->continueToReview($userToRegister);
  $this
    ->CompleteCheckout();
  $this
    ->assertNoNewAccountCreated();
}