protected function FieldEncryptTestBase::createTestNode in Field Encryption 8.2
Same name and namespace in other branches
- 3.0.x tests/src/Functional/FieldEncryptTestBase.php \Drupal\Tests\field_encrypt\Functional\FieldEncryptTestBase::createTestNode()
Creates a test node.
4 calls to FieldEncryptTestBase::createTestNode()
- FieldEncryptCacheTest::setUp in tests/
src/ Functional/ FieldEncryptCacheTest.php - @TODO: Simplify setUp() by extending EncryptTestBase when https://www.drupal.org/node/2692387 lands.
- FieldEncryptTest::testEncryptField in tests/
src/ Functional/ FieldEncryptTest.php - Test encrypting fields.
- FieldEncryptTest::testEncryptFieldRevision in tests/
src/ Functional/ FieldEncryptTest.php - Test encrypting fields with revisions.
- FieldEncryptTest::testEncryptFieldTranslation in tests/
src/ Functional/ FieldEncryptTest.php - Test encrypting fields with translations.
File
- tests/
src/ Functional/ FieldEncryptTestBase.php, line 128
Class
- FieldEncryptTestBase
- Base test class for field_encrypt.
Namespace
Drupal\Tests\field_encrypt\FunctionalCode
protected function createTestNode() {
$this->testNode = $this
->createNode([
'field_test_single' => [
[
'value' => "Lorem ipsum dolor sit amet.",
'summary' => "Lorem ipsum",
'format' => filter_default_format(),
],
],
'field_test_multi' => [
[
'value' => "one",
],
[
'value' => "two",
],
[
'value' => "three",
],
],
]);
}