This repository was archived by the owner on Dec 14, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ class AccountTest extends \Stormpath\Tests\TestCase {
2828 private static $ groups ;
2929 private static $ account ;
3030 private static $ inited ;
31+ private static $ time ;
3132 private static $ application ;
3233
3334 protected static function init () {
@@ -44,6 +45,10 @@ protected static function init() {
4445 'password ' => 'superP4ss ' ));
4546
4647 self ::$ directory ->createAccount (self ::$ account );
48+ self ::$ time = microtime ();
49+ $ cd = self ::$ account ->customData ;
50+ $ cd ->unitTest = self ::$ time ;
51+ $ cd ->save ();
4752
4853 self:$ groups = array ();
4954
@@ -429,16 +434,8 @@ public function testCustomDataSearch()
429434
430435 $ client = Client::getInstance ();
431436
432- $ accounts = $ client ->tenant ->accounts ->setSearch (['customData.unitTest ' =>'unit Test ' ]);
433- $ this ->assertEquals (0 , $ accounts ->size );
434-
435-
436- $ cd = self ::$ account ->customData ;
437- $ cd ->unitTest = "unit Test " ;
438- $ cd ->save ();
439437 usleep (100 );
440-
441- $ accounts = $ client ->tenant ->accounts ->setSearch (['customData.unitTest ' =>'unit Test ' ]);
438+ $ accounts = $ client ->tenant ->accounts ->setSearch (['customData.unitTest ' => self ::$ time ]);
442439 $ this ->assertEquals (1 , $ accounts ->size );
443440
444441
You can’t perform that action at this time.
0 commit comments