You are here

public function ImceProfileDeleteFormTest::testConfirmText in IMCE 8.2

Same name and namespace in other branches
  1. 8 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
    ->assertIsString($confirmText
    ->__toString());
  $this
    ->assertEquals($this
    ->t('Delete'), $confirmText);
}