Skip to content

Commit

Permalink
Initializes the Autoloader after reset all in ValidationTest
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Nov 30, 2018
1 parent 2eb123c commit 379d1c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/system/Validation/ValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 379d1c6

Please sign in to comment.