public function testCurrentDateUpdateQuery($type)
{
$qb = $this->getTestQueryBuilder()->updateOne()->field('lastUpdated')->currentDate($type)->field('username')->equals('boo');
$expected = ['username' => 'boo'];
$this->assertEquals($expected, $qb->getQueryArray());
$expected = ['$currentDate' => ['lastUpdated' => ['$type' => $type]]];
$this->assertEquals($expected, $qb->getNewObj());
}