You are here

function EncryptEncryptionMethodPluginsTest::testPluginsAppearInList in Encrypt 7.3

Same name and namespace in other branches
  1. 7.2 encrypt.test \EncryptEncryptionMethodPluginsTest::testPluginsAppearInList()

The declared encryption method appears on the add configuration page.

File

./encrypt.test, line 192
Tests for encrypt.module

Class

EncryptEncryptionMethodPluginsTest
Test encryption method hooks.

Code

function testPluginsAppearInList() {
  $this
    ->drupalGet('admin/config/system/encrypt/add');
  $this
    ->assertText('Test Method', t('Encryption method name is present.'));
  $this
    ->assertText('This is just a test encryption method.', t('Encryption method description is present.'));
  $this
    ->assertText('Test Key Provider', t('Key provider name is present.'));
  $this
    ->assertText('This is just a test key provider.', t('Key provider description is present.'));
}