mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
Unit test fix different approach.
This commit is contained in:
@@ -7,4 +7,4 @@ modules:
|
|||||||
enabled:
|
enabled:
|
||||||
- Asserts
|
- Asserts
|
||||||
- \Helper\Unit
|
- \Helper\Unit
|
||||||
error_level: "E_ALL & ~E_USER_WARNING"
|
|
||||||
|
@@ -18,7 +18,7 @@ class e107Test extends \Codeception\Test\Unit
|
|||||||
|
|
||||||
protected function _before()
|
protected function _before()
|
||||||
{
|
{
|
||||||
|
error_reporting(E_ALL & ~E_USER_WARNING);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$this->e107 = e107::getInstance();
|
$this->e107 = e107::getInstance();
|
||||||
@@ -32,7 +32,7 @@ class e107Test extends \Codeception\Test\Unit
|
|||||||
|
|
||||||
protected function _after()
|
protected function _after()
|
||||||
{
|
{
|
||||||
|
error_reporting(E_ALL);
|
||||||
// Clean up temporary files
|
// Clean up temporary files
|
||||||
foreach($this->tempFiles as $file)
|
foreach($this->tempFiles as $file)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user