Skip to content

Commit

Permalink
ESDEV-4156 Turn off preventModuleVersionNotify
Browse files Browse the repository at this point in the history
It's impossible to use this option when the acceptance test is
running against an empty database. During the Setup acceptance
tests all test cases start with an empty database.
  • Loading branch information
rezonanc-oxid committed Jan 9, 2017
1 parent 018f851 commit e14efd2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/Acceptance/AcceptanceTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

abstract class AcceptanceTestCase extends \OxidEsales\TestingLibrary\AcceptanceTestCase
{
protected $preventModuleVersionNotify = true;

/**
* Sets up default environment for tests.
*/
Expand All @@ -35,8 +37,10 @@ protected function setUp()
parent::setUp();

//Suppress check for new module versions on every admin login
$aParams = array("type" => "bool", "value" => true);
$this->callShopSC("oxConfig", null, null, array('preventModuleVersionNotify' => $aParams));
if ($this->preventModuleVersionNotify) {
$aParams = array("type" => "bool", "value" => true);
$this->callShopSC("oxConfig", null, null, array('preventModuleVersionNotify' => $aParams));
}
}

/**
Expand Down
6 changes: 6 additions & 0 deletions tests/Acceptance/Frontend/ShopSetUpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ class ShopSetUpTest extends FrontendTestCase
/** @var int How much more time wait for these tests. */
protected $_iWaitTimeMultiplier = 7;

protected function setUp()
{
$this->preventModuleVersionNotify = false;
parent::setUp();
}

protected function tearDown()
{
$this->resetShop();
Expand Down

0 comments on commit e14efd2

Please sign in to comment.