Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OxCom committed Jan 11, 2021
1 parent a895f86 commit 2dc2a45
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions Test/Model/AbstractTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace OxCom\MagentoCurrencyServices\Test\Model;

use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;

/**
* Class AbstractTestCase
*
Expand Down Expand Up @@ -30,7 +32,11 @@ public function __construct($name = null, array $data = [], $dataName = '')
parent::__construct($name, $data, $dataName);
}

public static function setUpBeforeClass()
/**
* Sets up the fixture, for example, open a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
// every week switch to real or mocked response to avoid loose of source
$date = new \DateTime();
Expand All @@ -40,15 +46,8 @@ public static function setUpBeforeClass()
if (static::$isReal) {
\fwrite(STDOUT, "!!! Test will be executed on real sources !!!" . PHP_EOL . PHP_EOL);
}
}

/**
* Sets up the fixture, for example, open a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->om = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
$this->om = new ObjectManager($this);
}

/**
Expand Down

0 comments on commit 2dc2a45

Please sign in to comment.