File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
TwoFactorAuth/Test/Integration Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -170,8 +170,8 @@ public function testShouldEncryptConfiguration(): void
170
170
$ encryptor = Bootstrap::getObjectManager ()->create (EncryptorInterface::class);
171
171
172
172
/** @var ResourceConnection $resourceConnection */
173
- $ connection = Bootstrap::getObjectManager ()->get (ResourceConnection::class)
174
- ->getConnection (ResourceConnection::DEFAULT_CONNECTION );
173
+ $ resourceConnection = Bootstrap::getObjectManager ()->get (ResourceConnection::class);
174
+ $ connection = $ resourceConnection ->getConnection (ResourceConnection::DEFAULT_CONNECTION );
175
175
176
176
$ configPayload = ['a ' => 1 , 'b ' => 2 ];
177
177
@@ -181,8 +181,10 @@ public function testShouldEncryptConfiguration(): void
181
181
$ configPayload
182
182
);
183
183
184
+ $ tfaUserConfig = $ resourceConnection ->getTableName ('tfa_user_config ' );
185
+
184
186
$ qry = $ connection ->select ()
185
- ->from (' tfa_user_config ' , 'encoded_config ' )
187
+ ->from ($ tfaUserConfig , 'encoded_config ' )
186
188
->where ('user_id = ? ' , (int )$ dummyUser ->getId ());
187
189
188
190
$ res = $ connection ->fetchOne ($ qry );
You can’t perform that action at this time.
0 commit comments