Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/payment/commerce_payment.links.task.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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:
Expand Down
9 changes: 9 additions & 0 deletions modules/payment/tests/src/Functional/PaymentAdminTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,15 @@ protected function setUp() {
$this->paymentUri = 'admin/commerce/orders/' . $this->order->id() . '/payments';
}

/**
* Tests that a Payments task link exists on the order page.
*/
public function testPaymentTask() {
$this->drupalGet('admin/commerce/orders/' . $this->order->id());
$this->assertSession()->linkExists('Payments');
$this->assertSession()->linkByHrefExists($this->paymentUri);
}

/**
* Tests creating a payment for an order.
*/
Expand Down