mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
MINOR Argument 2 to assertRegExp should be a string, but the value comes out of the database as an integer sometimes. Cast it to a string.
This commit is contained in:
parent
a0562ae170
commit
11b60cfe4c
@ -31,7 +31,7 @@ class DbDatetimeTest extends FunctionalTest {
|
|||||||
if($this->supportDbDatetime) {
|
if($this->supportDbDatetime) {
|
||||||
$query = 'SELECT ' . $this->adapter->formattedDatetimeClause('now', '%U');
|
$query = 'SELECT ' . $this->adapter->formattedDatetimeClause('now', '%U');
|
||||||
$result = DB::query($query)->value();
|
$result = DB::query($query)->value();
|
||||||
$this->assertRegExp('/^\d*$/', $result);
|
$this->assertRegExp('/^\d*$/', (string) $result);
|
||||||
$this->assertTrue($result>0);
|
$this->assertTrue($result>0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user