You are here

public function ImceProfileDeleteFormTest::testCancelUrl in IMCE 8

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/Form/ImceProfileDeleteFormTest.php \Drupal\Tests\imce\Kernel\Form\ImceProfileDeleteFormTest::testCancelUrl()

Test the method getCancelUrl().

File

tests/src/Kernel/Form/ImceProfileDeleteFormTest.php, line 47

Class

ImceProfileDeleteFormTest
Kernel tests for ImceProfileDeleteForm.

Namespace

Drupal\Tests\imce\Kernel\Form

Code

public function testCancelUrl() {
  $url = $this->profileDeleteForm
    ->getCancelUrl();
  $this
    ->assertInstanceOf(Url::class, $url);
  $this
    ->assertTrue(is_string($url
    ->toString()));
  $this
    ->assertSame('/admin/config/media/imce', $url
    ->toString());
  $this
    ->assertEquals('/admin/config/media/imce', $url
    ->toString());
}