public function testUpdate()
 {
     $res = $this->steeringListMapper->insert($this->steering);
     $this->assertNotNull($res);
     $res_by_id = $this->steeringListMapper->findOneById($res);
     $res_by_id->setSteeringType('updated');
     $res_update = $this->steeringListMapper->update($res_by_id);
     $this->assertNotNull($res_update);
     $res_by_id = $this->steeringListMapper->findOneById($res);
     $this->assertEquals($res_by_id->getSteeringType(), 'updated');
 }
 public function testGetNextSequence_sequence()
 {
     $count = 100;
     $this->counterMongoMapper->setCounterInitialValue(10);
     $this->counterMongoMapper->setIncrement(20);
     for ($i = 0; $i <= $count; $i++) {
         $res = $this->counterMongoMapper->getNextSequence();
     }
     $this->assertEquals($res, $this->counterMongoMapper->getCounterInitialValue() + $count * $this->counterMongoMapper->getIncrement() + $this->counterMongoMapper->getIncrement());
 }