mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Attempting to fix occasional db tests on Travis
This commit is contained in:
parent
2e1549f5b1
commit
a883c95675
@ -1440,7 +1440,9 @@ class BaseBuilder
|
|||||||
$this->QBOrderBy = $orderby;
|
$this->QBOrderBy = $orderby;
|
||||||
}
|
}
|
||||||
|
|
||||||
$row = $result->getRow();
|
$row = is_bool($result)
|
||||||
|
? null
|
||||||
|
: $result->getRow();
|
||||||
|
|
||||||
if (empty($row))
|
if (empty($row))
|
||||||
{
|
{
|
||||||
|
@ -496,7 +496,7 @@ class ModelTest extends \CIDatabaseTestCase
|
|||||||
$date = $this->getPrivateProperty($entity, 'created_at');
|
$date = $this->getPrivateProperty($entity, 'created_at');
|
||||||
$this->assertTrue($date instanceof Time);
|
$this->assertTrue($date instanceof Time);
|
||||||
|
|
||||||
$model->save($entity);
|
$this->assertTrue($model->save($entity));
|
||||||
|
|
||||||
$this->seeInDatabase('job', ['name' => 'Senior Developer', 'created_at' => '2017-07-15 00:00:00']);
|
$this->seeInDatabase('job', ['name' => 'Senior Developer', 'created_at' => '2017-07-15 00:00:00']);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user