function PaymentStatusDeleteFormTest::testGetCancelUrl in Payment 8.2
@covers ::getCancelUrl
File
- tests/
src/ Unit/ Entity/ PaymentStatus/ PaymentStatusDeleteFormTest.php, line 109
Class
- PaymentStatusDeleteFormTest
- @coversDefaultClass \Drupal\payment\Entity\PaymentStatus\PaymentStatusDeleteForm
Namespace
Drupal\Tests\payment\Unit\Entity\PaymentStatusCode
function testGetCancelUrl() {
$url = new Url($this
->randomMachineName());
$this->paymentStatus
->expects($this
->atLeastOnce())
->method('toUrl')
->with('collection')
->willReturn($url);
$cancel_url = $this->sut
->getCancelUrl();
$this
->assertSame($url, $cancel_url);
}