Skip to content

Commit

Permalink
OPI-624: Implement possibility to run functional tests in parallel in…
Browse files Browse the repository at this point in the history
… scope of one bundle (#23112)

 - changed tests paths. Now all tests are separated by the Tests/Functional/* path in which they are located for a more even distribution in nodes
 - update limits for tests
 - updated failed functional tests
  • Loading branch information
Mykhailo Sulyma committed May 22, 2019
1 parent e89437f commit cf25007
Showing 1 changed file with 3 additions and 21 deletions.
Expand Up @@ -40,16 +40,6 @@ class CombinedPriceListScheduleResolverTest extends WebTestCase
*/
protected $configManager;

/**
* @var int|null
*/
protected $defaultPriceListId;

/**
* @var int|null
*/
protected $defaultFullPriceListId;

/**
* {@inheritdoc}
*/
Expand All @@ -70,12 +60,10 @@ protected function setUp()
$this->priceRepository = $this->getContainer()->get('doctrine')
->getManagerForClass(CombinedProductPrice::class)
->getRepository(CombinedProductPrice::class);

$this->saveDefaultConfigValue();
}

/**
* @dataProvider CPLSwitchingDataProvider
* @dataProvider cplSwitchingDataProvider
* @param array $cplRelationsExpected
* @param array $cplConfig
* @param \DateTime $now
Expand Down Expand Up @@ -121,7 +109,7 @@ public function testCPLSwitching(array $cplRelationsExpected, array $cplConfig,
/**
* @return array
*/
public function CPLSwitchingDataProvider()
public function cplSwitchingDataProvider()
{
return [
[
Expand All @@ -135,7 +123,7 @@ public function CPLSwitchingDataProvider()
'expectedActualCpl' => '2f_1t_3t',
'expectedFullCpl' => '2f_1t_3t',
],
'now' => $this->createDateTime('+2 day'),
'now' => $this->createDateTime('+11 hours'),
],
[
'cplRelationsExpected' => [
Expand Down Expand Up @@ -250,10 +238,4 @@ protected function checkConfigCPL(array $cplConfig)
$this->assertEquals($expectedActualCpl, $this->configManager->get($actualCPLConfigKey));
$this->assertEquals($expectedFullCpl, $this->configManager->get($fullCPLConfigKey));
}

protected function saveDefaultConfigValue()
{
$this->defaultPriceListId = $this->configManager->get(Configuration::getConfigKeyToPriceList());
$this->defaultFullPriceListId = $this->configManager->get(Configuration::getConfigKeyToFullPriceList());
}
}

0 comments on commit cf25007

Please sign in to comment.