Skip to content

Commit

Permalink
Initialize the Autloader service after a services reset
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Nov 30, 2018
1 parent 379d1c6 commit 22cfa20
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/system/View/ParserPluginTest.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
<?php

use CodeIgniter\View\Parser;

class ParserPluginTest extends \CIUnitTestCase
{
/**
* @var \CodeIgniter\View\Parser
*/
protected $parser;
/**
* @var \CodeIgniter\Validation\Validation
*/
protected $validator;

public function setUp()
{
parent::setUp();

\Config\Services::reset();
\Config\Services::autoloader()->initialize(new \Config\Autoload());
$this->parser = \Config\Services::parser();
$this->validator = \Config\Services::validation();
}
Expand Down

0 comments on commit 22cfa20

Please sign in to comment.