diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2022-04-16 19:14:05 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2022-04-16 19:15:24 +0100 |
| commit | da7adf569f1bb40c68e1e8851b07a63eeb99e820 (patch) | |
| tree | a4c2b6aa5f88cd13326ad8f3e3c53520c80530cf /tests/app/Elements | |
| parent | 551058928d209f20b92e88ab47a905d66417bfb9 (diff) | |
| download | webtrees-da7adf569f1bb40c68e1e8851b07a63eeb99e820.tar.gz webtrees-da7adf569f1bb40c68e1e8851b07a63eeb99e820.tar.bz2 webtrees-da7adf569f1bb40c68e1e8851b07a63eeb99e820.zip | |
Prefer uppercase for RestrictionNotice fields. See #4308
Diffstat (limited to 'tests/app/Elements')
| -rw-r--r-- | tests/app/Elements/RestrictionNoticeTest.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/app/Elements/RestrictionNoticeTest.php b/tests/app/Elements/RestrictionNoticeTest.php index 595d842aa9..61810b2e10 100644 --- a/tests/app/Elements/RestrictionNoticeTest.php +++ b/tests/app/Elements/RestrictionNoticeTest.php @@ -42,12 +42,12 @@ class RestrictionNoticeTest extends AbstractElementTest */ public function testCanonical(): void { - 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')); + 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')); } } |
