File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
dev/tests/integration/testsuite/Magento/User/Model Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \User \Model ;
8
8
9
- use Magento \Framework \Serialize \Serializer \Json ;
10
9
use Magento \Framework \Encryption \Encryptor ;
11
10
12
11
/**
@@ -29,11 +28,6 @@ class UserTest extends \PHPUnit\Framework\TestCase
29
28
*/
30
29
protected static $ _newRole ;
31
30
32
- /**
33
- * @var Json
34
- */
35
- private $ serializer ;
36
-
37
31
/**
38
32
* @var Encryptor
39
33
*/
@@ -47,9 +41,6 @@ protected function setUp()
47
41
$ this ->_dateTime = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->create (
48
42
\Magento \Framework \Stdlib \DateTime::class
49
43
);
50
- $ this ->serializer = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->create (
51
- Json::class
52
- );
53
44
$ this ->encryptor = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->create (
54
45
Encryptor::class
55
46
);
@@ -133,7 +124,7 @@ public function testSaveExtra()
133
124
$ this ->_model ->loadByUsername (\Magento \TestFramework \Bootstrap::ADMIN_NAME );
134
125
$ this ->_model ->saveExtra (['test ' => 'val ' ]);
135
126
$ this ->_model ->loadByUsername (\Magento \TestFramework \Bootstrap::ADMIN_NAME );
136
- $ extra = $ this ->serializer -> unserialize ( $ this -> _model ->getExtra () );
127
+ $ extra = $ this ->_model ->getExtra ();
137
128
$ this ->assertEquals ($ extra ['test ' ], 'val ' );
138
129
}
139
130
You can’t perform that action at this time.
0 commit comments