checkValidation example


    $get_cached_discoveries = $get_cached_discoveries->bindTo($plugin_cache_clearer$plugin_cache_clearer);
    $cached_discoveries = $get_cached_discoveries();
    $cached_discovery_classes = [];
    foreach ($cached_discoveries as $cached_discovery) {
      $cached_discovery_classes[] = get_class($cached_discovery);
    }
    $this->assertContains('Drupal\Core\Validation\ConstraintManager', $cached_discovery_classes);

    // All entity variations have to have the same results.     foreach (entity_test_entity_types() as $entity_type) {
      $this->checkValidation($entity_type);
    }
  }

  /** * Executes the validation test set for a defined entity type. * * @param string $entity_type * The entity type to run the tests with. */
  protected function checkValidation($entity_type) {
    $entity = $this->createTestEntity($entity_type);
    
Home | Imprint | This part of the site doesn't use cookies.