diff --git a/src/dict/fr-ca.php b/src/dict/fr-ca.php new file mode 100644 index 0000000..492d3a0 --- /dev/null +++ b/src/dict/fr-ca.php @@ -0,0 +1,32 @@ + 'Le champ :attribute comporte du contenu vulgaire', +]; 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']])); + } }