You are here

protected function FieldValidationRuleBase::setUp in Field Validation 8

Overrides EntityKernelTestBase::setUp

13 calls to FieldValidationRuleBase::setUp()
BlackListFieldValidationRuleTest::setUp in tests/src/Kernel/Plugin/FieldValidationRule/BlackListFieldValidationRuleTest.php
DateRangeFieldValidationRuleTest::setUp in tests/src/Kernel/Plugin/FieldValidationRule/DateRangeFieldValidationRuleTest.php
EmailFieldValidationRuleTest::setUp in tests/src/Kernel/Plugin/FieldValidationRule/EmailFieldValidationRuleTest.php
IntegerFieldValidationTest::setUp in tests/src/Kernel/Plugin/FieldValidationRule/IntegerFieldValidationTest.php
IpFieldValidationRuleTest::setUp in tests/src/Kernel/Plugin/FieldValidationRule/IpFieldValidationRuleTest.php

... See full list

13 methods override FieldValidationRuleBase::setUp()
BlackListFieldValidationRuleTest::setUp in tests/src/Kernel/Plugin/FieldValidationRule/BlackListFieldValidationRuleTest.php
DateRangeFieldValidationRuleTest::setUp in tests/src/Kernel/Plugin/FieldValidationRule/DateRangeFieldValidationRuleTest.php
EmailFieldValidationRuleTest::setUp in tests/src/Kernel/Plugin/FieldValidationRule/EmailFieldValidationRuleTest.php
IntegerFieldValidationTest::setUp in tests/src/Kernel/Plugin/FieldValidationRule/IntegerFieldValidationTest.php
IpFieldValidationRuleTest::setUp in tests/src/Kernel/Plugin/FieldValidationRule/IpFieldValidationRuleTest.php

... See full list

File

tests/src/Kernel/Plugin/FieldValidationRule/FieldValidationRuleBase.php, line 42

Class

FieldValidationRuleBase
FieldValidationRuleBase class.

Namespace

Drupal\Tests\field_validation\Kernel\Plugin\FieldValidationRule

Code

protected function setUp() {
  parent::setUp();
  $this->nodeStorage = $this->entityTypeManager
    ->getStorage('node');
  $this->ruleSetStorage = $this->entityTypeManager
    ->getStorage('field_validation_rule_set');
}