Skip to content
Snippets Groups Projects
Commit dbf6631b authored by Joseph Olstad's avatar Joseph Olstad
Browse files

Issue #3455186 by joseph.olstad - Refactor of 88f1e040 for tests for D11...

Issue #3455186 by joseph.olstad - Refactor of 88f1e040 for tests for D11 phpunit 10+ compatibility refactoring test.
parent 70d169a6
No related branches found
No related tags found
No related merge requests found
Pipeline #333503 failed
......@@ -311,8 +311,11 @@ use Drupal\Core\Link;
use IteratorAggregate;
use Traversable;
use ArrayIterator;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Entity\EntityChangedInterface;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\Core\Field\FieldItemListInterface;
/**
* Mock implementation of TermInterface for unit tests.
......@@ -420,11 +423,11 @@ class MockTerm implements TermInterface, IteratorAggregate, EntityChangedInterfa
return [];
}
public static function baseFieldDefinitions($entity_type) {
public static function baseFieldDefinitions(EntityTypeInterface $entity_type): array {
return [];
}
public static function bundleFieldDefinitions($entity_type, $bundle) {
public static function bundleFieldDefinitions(EntityTypeInterface $entity_type, $bundle, array $base_field_definitions): array {
return [];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment