summaryrefslogtreecommitdiff
path: root/tests/app/Services
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-11-09 12:01:38 +0000
committerGreg Roach <greg@subaqua.co.uk>2021-11-09 12:04:48 +0000
commitcefd719cbe1294fc6d2ccd78d511950b7752b873 (patch)
tree491e9910374ad5d96c80882a59c28da71600efdf /tests/app/Services
parente7b54987e391f4061e298f65b7da136bb2d7e46f (diff)
downloadwebtrees-cefd719cbe1294fc6d2ccd78d511950b7752b873.tar.gz
webtrees-cefd719cbe1294fc6d2ccd78d511950b7752b873.tar.bz2
webtrees-cefd719cbe1294fc6d2ccd78d511950b7752b873.zip
Fix: save edit facts not working
Diffstat (limited to 'tests/app/Services')
-rw-r--r--tests/app/Services/GedcomEditServiceTest.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/app/Services/GedcomEditServiceTest.php b/tests/app/Services/GedcomEditServiceTest.php
index 019a562599..e87a9f2e42 100644
--- a/tests/app/Services/GedcomEditServiceTest.php
+++ b/tests/app/Services/GedcomEditServiceTest.php
@@ -75,6 +75,17 @@ class GedcomEditServiceTest extends TestCase
)
);
+ // Missing SOUR, so ignore PAGE
+ $this->assertSame(
+ "1 BIRT\n2 PLAC England",
+ $gedcom_edit_service->editLinesToGedcom(
+ 'INDI',
+ ['1', '2', '2', '3'],
+ ['BIRT', 'PLAC', 'SOUR', 'PAGE'],
+ ['Y', 'England', '', '123']
+ )
+ );
+
$this->assertSame(
"1 BIRT\n2 PLAC England",
$gedcom_edit_service->editLinesToGedcom(