testAdminOrderView from OrderViewTest can be moved into OrderAdminTest.

We should create a new OrderUserTest that creates an order, confirms that /users/%user/orders is accessible and shows that order, then clicks the view link, confirms that the /users/%user/orders/%order link works properly.

Comments

bojanz created an issue. See original summary.

mbreden’s picture

Assigned: Unassigned » mbreden
mbreden’s picture

Status: Active » Needs review
StatusFileSize
new4.38 KB

This should do the trick.

mbreden’s picture

StatusFileSize
new4.48 KB

Modified code to Drupal standards.

Pull request sent:
https://github.com/drupalcommerce/commerce/pull/530

mbreden’s picture

Changed from using admin to a custom user with only the one permission.

https://github.com/drupalcommerce/commerce/pull/531

mbreden’s picture

  • bojanz committed 6aa26bf on 8.x-2.x
    Issue #2817267: Expand order tests. (#531)
    
    
bojanz’s picture

Status: Needs review » Fixed

@mbreden
drupal.org did not recognize your commit authorship, even though GitHub did: https://github.com/drupalcommerce/commerce/commit/6aa26bf0402ff15017b38e...

This usually means that the email you used in your GitHub commit has not been added to your drupal.org profile.
Go ahead and do that, let's see if it recognizes it retroactively. If not, I'll repeat the commit.

Thanks for the work!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.