From 87a3bb06136d3bd49771f0099bf00351893e9f5c Mon Sep 17 00:00:00 2001 From: Rachid Date: Sun, 11 Oct 2020 16:59:52 -0400 Subject: [PATCH] Added tests for french and french-canadian. --- tests/ProfaneValidatorTest.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/ProfaneValidatorTest.php b/tests/ProfaneValidatorTest.php index 8b0617e..fa24664 100644 --- a/tests/ProfaneValidatorTest.php +++ b/tests/ProfaneValidatorTest.php @@ -105,4 +105,22 @@ class ProfaneValidatorTest extends TestCase $this->assertFalse($builder->validate(['description', 'εισαι πουτανα', ['en', 'gr']])); } + + public function test_can_validate_a_word_in_french() + { + $this->mockConfigs(); + + $builder = new ProfaneValidatorBuilder(); + + $this->assertFalse($builder->validate(['description', 'Va te faire enculer, sac à merde', ['en', 'fr']])); + } + + public function test_can_validate_a_word_in_french_canadian() + { + $this->mockConfigs(); + + $builder = new ProfaneValidatorBuilder(); + + $this->assertFalse($builder->validate(['description', 'Décrisse gros cave', ['en', 'fr-ca']])); + } }