diff --git a/tests/system/Validation/ValidationTest.php b/tests/system/Validation/ValidationTest.php index 986f88c77eae..bef0cce13b9a 100644 --- a/tests/system/Validation/ValidationTest.php +++ b/tests/system/Validation/ValidationTest.php @@ -43,7 +43,10 @@ public function setUp() { parent::setUp(); + // Reset all services instances Services::reset(); + // Initialize the Autoloader... - we need it to search for language files in the locator + Services::autoloader()->initialize(new \Config\Autoload()); $this->validation = new Validation((object) $this->config, \Config\Services::renderer()); $this->validation->reset();