/** * Test Global Validation with block of non existing params * * @return void */ public function testGlobalValidationWithBlockOfNonExistingParams() { $validator = new GlobalValidator(); $data = ['lang' => 'non-existing-lang', 'theme' => 'non-existing-theme', 'type' => 'non-existing-type', 'size' => 'non-existing-size']; $errors = $validator->errors($data); $this->assertArrayHasKey('lang', $errors); $this->assertArrayHasKey('theme', $errors); $this->assertArrayHasKey('type', $errors); $this->assertArrayHasKey('size', $errors); }