improves LX-Office import test
[tine20] / tests / tine20 / Addressbook / Import / CsvTest.php
index 87d1b41..cbf247e 100644 (file)
@@ -357,7 +357,6 @@ class Addressbook_Import_CsvTest extends PHPUnit_Framework_TestCase
         
         // add duplicate field "customernumber"
         Addressbook_Controller_Contact::getInstance()->duplicateCheckFields(array(
-            array('n_given', 'n_family', 'org_name'),
             array('email'),
             array('customernumber')
         ));
@@ -383,13 +382,15 @@ class Addressbook_Import_CsvTest extends PHPUnit_Framework_TestCase
         
         $result = $this->_doImport($options, $definition);
         
-        $this->assertEquals(4, count($result['results']));
+        $this->assertEquals(6, count($result['results']));
         $this->assertEquals(3, $result['updatecount'], 'should have updated 3 contacts');
-        $this->assertEquals(1, $result['totalcount'], 'should have added 1 contact');
+        $this->assertEquals(3, $result['totalcount'], 'should have added 3 contacts');
         $this->assertEquals('Straßbough', $result['results'][1]['adr_one_locality'],
                 'should have changed the locality of contact #2: ' . print_r($result['results'][1]->toArray(), true));
         $this->assertEquals('Dr. Schutheiss', $result['results'][3]['n_family']);
         $this->assertEquals(1, $result['results'][2]['seq'], 'Wolfer should not be updated - nothing changed');
         $this->assertEquals('Weixdorf DD', $result['results'][0]['adr_one_locality'], 'locality should persist');
+        $this->assertEquals('Gartencenter Röhr & Vater', $result['results'][4]['n_fileas']);
+        $this->assertEquals('Straßback', $result['results'][5]['adr_one_locality']);
     }
 }