Problem/Motivation
While working on #2505283: Handle import of private files a number of faults were discovered in Drupal\Tests\file\Kernel\Migrate\d7\MigrateFileTest. These faults are being corrected for MigratePrivateFileTest in that ticket, but the same corrections should be applied to MigrateFileTest. These faults include (but not limited to):
- Use of
\Drupal::service()
rather than$this->container->get()
. - Redundant register of public stream wrapper.
Proposed resolution
Wait for #2505283: Handle import of private files to be fixed and then copy any improvements into MigrateFileTest.