You are here

public function ImceProfileDeleteFormTest::testConfirmText 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::testConfirmText()

Test the method getConfirmText().

File

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

Class

ImceProfileDeleteFormTest
Kernel tests for ImceProfileDeleteForm.

Namespace

Drupal\Tests\imce\Kernel\Form

Code

public function testConfirmText() {
  $confirmText = $this->profileDeleteForm
    ->getConfirmText();
  $this
    ->assertInstanceOf(TranslatableMarkup::class, $confirmText);
  $this
    ->assertTrue(is_string($confirmText
    ->__toString()));
  $this
    ->assertEqual($this
    ->t('Delete'), $confirmText);
}