Closed (won't fix)
Project:
Drupal core
Version:
8.6.x-dev
Component:
other
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
4 Feb 2019 at 11:09 UTC
Updated:
13 Apr 2019 at 23:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
satyanarayan reddy commentedFixed entityManager Deprecated
Comment #3
satyanarayan reddy commentedComment #4
satyanarayan reddy commentedComment #6
tr commentedNo, this is not correct. The purpose of that case is to test the \Drupal::entityManager() method. As long as that method exists, we need to test it.
You are replacing \Drupal::entityManager() with \Drupal::entityTypeManager() inside this test, but you are still mocking the entity.manager service, which is why the test fails (and SHOULD fail!). But you should not be doing this replacement, because the whole point of that test function is to ensure \Drupal::entityManager() properly returns the entity.manager service.