Permalink
Browse files

ESDEV-4156 Turn off preventModuleVersionNotify

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...
1 parent 018f851 commit e14efd26b54bd8dd46ef3412c55a114b420aa79f @rezonanc-oxid rezonanc-oxid committed Jan 6, 2017
Showing with 12 additions and 2 deletions.
  1. +6 −2 tests/Acceptance/AcceptanceTestCase.php
  2. +6 −0 tests/Acceptance/Frontend/ShopSetUpTest.php
@@ -27,6 +27,8 @@
abstract class AcceptanceTestCase extends \OxidEsales\TestingLibrary\AcceptanceTestCase
{
+ protected $preventModuleVersionNotify = true;
+
/**
* Sets up default environment for tests.
*/
@@ -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));
+ }
}
/**
@@ -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();

0 comments on commit e14efd2

Please sign in to comment.