diff --git a/src/Utils.php b/src/Utils.php index a1ba9cc..4c68218 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -9,14 +9,14 @@ use Drupal\Core\Entity\EntityTypeManagerInterface; class Utils { - public function __construct( - EntityTypeManager $entityTypeManager = null - ) { - if ($entityTypeManager == null) { - $entityTypeManager = Drupal::entityTypeManager(); - } - $this->entityTypeManager = $entityTypeManager; - } + // public function __construct( + // EntityTypeManager $entityTypeManager = null + // ) { + // if ($entityTypeManager == null) { + // $entityTypeManager = Drupal::entityTypeManager(); + // } + // $this->entityTypeManager = $entityTypeManager; + // } public function addConditionsToQuery(QueryInterface $query, array $conditions): void { foreach($conditions as $condition) { diff --git a/tests/src/Unit/UtilsTest.php b/tests/src/Unit/UtilsTest.php deleted file mode 100644 index 414a603..0000000 --- a/tests/src/Unit/UtilsTest.php +++ /dev/null @@ -1,14 +0,0 @@ -entityTypeManager = $this->getMockBuilder('\\Drupal\\Core\\Entity\\EntityTypeManager')->disableOriginalConstructor()->getMock(); - $this->utils = new Utils($this->entityTypeManager); - } -} \ No newline at end of file