public function testDiagnosisHistory()
 {
     $sim = $this->simMapper->findOneById("00000000000000000015", self::MASTER_ORG_ID);
     $data = $this->simMapper->getDiagnosisHistory($sim);
     $this->assertInternalType('array', $data);
     $this->assertNotEmpty($data);
     $this->assertArrayHasKey('end_date', $data[0]);
     $this->assertArrayHasKey('description', $data[0]);
 }
 /**
  * @group EricssonInt
  */
 public function testUpdateSim()
 {
     $sim = $this->simMapper->findOneById("00000000000000000000000000000001", "provider-sp1 (non-commercial)111111111111");
     $this->assertNotNull($sim);
     $customField = "customField1 modified-" . microtime(true);
     $sim->setCustomField_1($customField);
     $sim->save();
     $sim = $this->simMapper->findOneById("00000000000000000000000000000001", "provider-sp1 (non-commercial)111111111111");
     $this->assertNotNull($sim);
     $this->assertEquals($customField, $sim->getCustomField_1());
 }
 public function testGetLegacy()
 {
     $sim = $this->simMapper->findOneById(self::SIM_ID, self::MASTER_ORG_ID);
     $this->assertNotNull($sim);
     $this->assertTrue($sim->getLegacy());
 }