public function ImceProfileDeleteFormTest::testConfirmText in IMCE 8
Same name and namespace in other branches
- 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\FormCode
public function testConfirmText() {
$confirmText = $this->profileDeleteForm
->getConfirmText();
$this
->assertInstanceOf(TranslatableMarkup::class, $confirmText);
$this
->assertTrue(is_string($confirmText
->__toString()));
$this
->assertEqual($this
->t('Delete'), $confirmText);
}