summaryrefslogtreecommitdiff
path: root/tests/app/Elements
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2022-04-16 13:22:36 +0100
committerGreg Roach <greg@subaqua.co.uk>2022-04-16 13:22:36 +0100
commit7503bfb6595c5434c6bb4c637732f9b75221d449 (patch)
tree84d6595ce82159d016d52fac650ef8c71804cbd7 /tests/app/Elements
parentd4af76c46d5b7651af8765f59805c6521f3242a4 (diff)
downloadwebtrees-7503bfb6595c5434c6bb4c637732f9b75221d449.tar.gz
webtrees-7503bfb6595c5434c6bb4c637732f9b75221d449.tar.bz2
webtrees-7503bfb6595c5434c6bb4c637732f9b75221d449.zip
GEDCOM7 files can have two restrictions in the same RESN tag
Diffstat (limited to 'tests/app/Elements')
-rw-r--r--tests/app/Elements/RestrictionNoticeTest.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/app/Elements/RestrictionNoticeTest.php b/tests/app/Elements/RestrictionNoticeTest.php
index 72a4bd363e..595d842aa9 100644
--- a/tests/app/Elements/RestrictionNoticeTest.php
+++ b/tests/app/Elements/RestrictionNoticeTest.php
@@ -42,8 +42,12 @@ class RestrictionNoticeTest extends AbstractElementTest
*/
public function testCanonical(): void
{
- self::assertSame('foo bar baz', self::$element->canonical('Foo bAr baZ'));
- self::assertSame('foo bar baz', self::$element->canonical("\t Foo\t bAr \tbaZ\t "));
- self::assertSame('foo bar baz', self::$element->canonical("\nFoo \n\r bAr \r\n baZ\r"));
+ self::assertSame('privacy', self::$element->canonical('pRiVacy'));
+ self::assertSame('none', self::$element->canonical('NONE'));
+ self::assertSame('confidential', self::$element->canonical('Confidential'));
+ self::assertSame('locked', self::$element->canonical(', locked ,'));
+ self::assertSame('confidential, locked', self::$element->canonical('locked confidential'));
+ self::assertSame('privacy, locked', self::$element->canonical('locked, privacy'));
+ self::assertSame('none, locked', self::$element->canonical('locked,, none'));
}
}