File tree 3 files changed +4
-4
lines changed
TwoFactorAuth/Test/Integration/Model/Provider/Engine
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ public function testAuthenticateValidRequest()
156
156
'abc '
157
157
);
158
158
159
- self ::assertMatchesRegularExpression ( ' /^[a-z0-9]{32}$/ ' , $ result );
159
+ self ::assertNotEmpty ( $ result );
160
160
}
161
161
162
162
/**
@@ -290,7 +290,7 @@ public function testCreateTokenWithOneTouch()
290
290
Bootstrap::ADMIN_PASSWORD
291
291
);
292
292
293
- self ::assertMatchesRegularExpression ( ' /^[a-z0-9]{32}$/ ' , $ result );
293
+ self ::assertNotEmpty ( $ result );
294
294
}
295
295
296
296
/**
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ public function testVerifyValidRequest()
257
257
$ signature
258
258
);
259
259
260
- self ::assertMatchesRegularExpression ( ' /^[a-z0-9]{32}$/ ' , $ token );
260
+ self ::assertNotEmpty ( $ token );
261
261
}
262
262
263
263
/**
Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ public function testVerifyValidRequest()
238
238
Bootstrap::ADMIN_PASSWORD ,
239
239
json_encode ($ verifyData )
240
240
);
241
- self ::assertMatchesRegularExpression ( ' /^[a-z0-9]{32}$/ ' , $ token );
241
+ self ::assertNotEmpty ( $ token );
242
242
}
243
243
244
244
/**
You can’t perform that action at this time.
0 commit comments