diff options
| author | Greg Roach <fisharebest@gmail.com> | 2021-04-06 11:22:58 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2021-04-06 11:22:58 +0100 |
| commit | 468aa3a29065fc17b49a36ffd09619bda4de6d9a (patch) | |
| tree | d7cd91aa8fafe9bfcf3c36ae3db8910fde8cf7ef /tests | |
| parent | cf9d80bba1ec3aa8aa5b3a9bde6528b2fdbefe5d (diff) | |
| download | webtrees-468aa3a29065fc17b49a36ffd09619bda4de6d9a.tar.gz webtrees-468aa3a29065fc17b49a36ffd09619bda4de6d9a.tar.bz2 webtrees-468aa3a29065fc17b49a36ffd09619bda4de6d9a.zip | |
Testing
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/app/Elements/FormTest.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/app/Elements/FormTest.php b/tests/app/Elements/FormTest.php index b35bbc524e..c75706e627 100644 --- a/tests/app/Elements/FormTest.php +++ b/tests/app/Elements/FormTest.php @@ -36,4 +36,14 @@ class FormTest extends AbstractElementTest self::$element = new Form('label'); } + + /** + * @return void + */ + 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")); + } } |
