Exemplo n.º 1
0
 public function testCleanAddressObjects()
 {
     RawDataHelper::cleanAddressObjects($this->db);
     $this->assertEquals('г Москва', $this->db->execute("SELECT full_title FROM ?f WHERE id = '5c8b06f1-518e-496e-b683-7bf917e0d70b'", [$this->addressObjectTable])->fetchResult());
     $this->assertEquals('г Москва, ул Тверская', $this->db->execute("SELECT full_title FROM ?f WHERE id = 'afdda482-42ae-45d3-9af1-61ac6da41105'", [$this->addressObjectTable])->fetchResult());
     $this->assertEquals(0, $this->db->execute("SELECT level FROM ?f WHERE id = '5c8b06f1-518e-496e-b683-7bf917e0d70b'", [$this->addressObjectTable])->fetchResult());
     $this->assertEquals(1, $this->db->execute("SELECT level FROM ?f WHERE id = 'afdda482-42ae-45d3-9af1-61ac6da41105'", [$this->addressObjectTable])->fetchResult());
 }
Exemplo n.º 2
0
 public function modifyDataAfterImport()
 {
     $this->updateOldRecords();
     $this->addNewRecords();
     RawDataHelper::cleanAddressObjects($this->db);
 }
Exemplo n.º 3
0
 public function modifyDataAfterImport()
 {
     RawDataHelper::cleanAddressObjects($this->db);
 }