Skip to content

Commit 379d1c6

Browse files
committed
Initializes the Autoloader after reset all in ValidationTest
1 parent 2eb123c commit 379d1c6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/system/Validation/ValidationTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ public function setUp()
4343
{
4444
parent::setUp();
4545

46+
// Reset all services instances
4647
Services::reset();
48+
// Initialize the Autoloader... - we need it to search for language files in the locator
49+
Services::autoloader()->initialize(new \Config\Autoload());
4750

4851
$this->validation = new Validation((object) $this->config, \Config\Services::renderer());
4952
$this->validation->reset();

0 commit comments

Comments
 (0)