deprecated entityManager

Comments

Satyanarayan Reddy created an issue. See original summary.

satyanarayan reddy’s picture

StatusFileSize
new514 bytes

Fixed entityManager Deprecated

satyanarayan reddy’s picture

Status: Active » Needs review
satyanarayan reddy’s picture

Category: Bug report » Task

Status: Needs review » Needs work

The last submitted patch, 2: Deprecated_entityManager-3030439-2.patch, failed testing. View results

tr’s picture

Status: Needs work » Closed (won't fix)

No, 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.