public function CommerceTest::testSettingsPage in Field Encryption 3.0.x
Tests that the admin forms work when commerce is installed.
File
- tests/
src/ Functional/ CommerceTest.php, line 22
Class
- CommerceTest
- Tests field encryption settings with the Commerce module.
Namespace
Drupal\Tests\field_encrypt\FunctionalCode
public function testSettingsPage() {
$this
->drupalLogin($this
->createUser([
'administer field encryption',
]));
$this
->drupalGet('admin/config/system/field-encrypt');
$this
->assertSession()
->statusCodeEquals(200);
// Ensure that special handling for preconfigured definitions works.
$this
->assertSession()
->elementTextContains('css', '#edit-default-properties-reference-field-uientity-referencenode--wrapper', 'Content properties');
$this
->drupalGet('admin/config/system/field-encrypt/field-overview');
$this
->assertSession()
->statusCodeEquals(200);
}