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