Follow-up 0b3ea6e1ab: use more flexible regex for timestamp in ChangesListSpecialPageTest
authorRoan Kattouw <roan.kattouw@gmail.com>
Sat, 29 Jul 2017 00:36:25 +0000 (17:36 -0700)
committerRoan Kattouw <roan.kattouw@gmail.com>
Sat, 29 Jul 2017 00:36:25 +0000 (17:36 -0700)
Postgres uses timestamps like "2017-07-28 17:37:03" that aren't all numbers.

Bug: T75174
Change-Id: I1b65578c955ccdce1060783b06c2ca577796e68f

tests/phpunit/includes/specialpage/ChangesListSpecialPageTest.php

index 4070bc0..f494785 100644 (file)
@@ -474,7 +474,7 @@ class ChangesListSpecialPageTest extends AbstractChangesListSpecialPageTestCase
                $conds = $this->buildQuery( [ 'userExpLevel' => 'unregistered;experienced' ] );
 
                $this->assertRegExp(
-                       '/\(rc_user = 0\) OR \(\(user_editcount >= 500\) AND \(user_registration <= \'\d+\'\)\)/',
+                       '/\(rc_user = 0\) OR \(\(user_editcount >= 500\) AND \(user_registration <= \'[^\']+\'\)\)/',
                        reset( $conds ),
                        "rc conditions: userExpLevel=unregistered;experienced"
                );