Commit eaa3be0e authored by bojanz's avatar bojanz

Issue #2832595 by bojanz, steveoliver: Payments tab on orders no longer shows up

parent f17218ec
entity.commerce_payment.collection:
route_name: entity.commerce_payment.collection
base_route: entity.commerce_order.edit_form
base_route: entity.commerce_order.canonical
title: Payments
entity.commerce_payment_gateway.edit_form:
......
......@@ -66,6 +66,7 @@ class PaymentAdminTest extends CommerceBrowserTestBase {
*/
protected function getAdministratorPermissions() {
return array_merge([
'administer commerce_order',
'administer commerce_payment_gateway',
'administer commerce_payment',
], parent::getAdministratorPermissions());
......@@ -122,6 +123,15 @@ class PaymentAdminTest extends CommerceBrowserTestBase {
$this->paymentUri = 'admin/commerce/orders/' . $this->order->id() . '/payments';
}
/**
* Tests that a Payments tab is visible on the order page.
*/
public function testPaymentTab() {
$this->drupalGet('admin/commerce/orders/' . $this->order->id());
$this->assertSession()->linkExists('Payments');
$this->assertSession()->linkByHrefExists($this->paymentUri);
}
/**
* Tests creating a payment for an order.
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment