99use Magento \Backend \Model \Auth as AuthModel ;
1010use Magento \Framework \Exception \AuthenticationException ;
1111use Magento \Framework \Exception \LocalizedException ;
12- use Magento \Framework \ObjectManagerInterface ;
1312use Magento \TestFramework \Fixture \DataFixture ;
14- use Magento \TestFramework \Fixture \DataFixtureStorage ;
1513use Magento \TestFramework \Fixture \DataFixtureStorageManager ;
1614use Magento \TestFramework \Helper \Bootstrap ;
1715use Magento \User \Model \User as UserModel ;
2422class ValidateUserDateFieldsTest extends TestCase
2523{
2624
27- /**
28- * @var DataFixtureStorage
29- */
30- private DataFixtureStorage $ fixtures ;
31-
3225 /**
3326 * @var AuthModel
3427 */
@@ -46,20 +39,20 @@ protected function setUp(): void
4639 {
4740 Bootstrap::getInstance ()->loadArea (\Magento \Backend \App \Area \FrontNameResolver::AREA_CODE );
4841 $ objectManager = Bootstrap::getObjectManager ();
49- $ this ->fixtures = DataFixtureStorageManager::getStorage ();
5042 $ this ->authModel = $ objectManager ->create (AuthModel::class);
5143 $ this ->userModel = $ objectManager ->create (UserModel::class);
5244 }
5345
5446 /**
5547 * @throws AuthenticationException
48+ * @throws LocalizedException
5649 */
5750 #[
5851 DataFixture(UserDataFixture::class, ['role_id ' => 1 ], 'user ' )
5952 ]
6053 public function testLogDate ()
6154 {
62- $ user = $ this -> fixtures ->get ('user ' );
55+ $ user = DataFixtureStorageManager:: getStorage () ->get ('user ' );
6356 $ userName = $ user ->getDataByKey ('username ' );
6457 $ this ->authModel ->login (
6558 $ userName ,
0 commit comments