Skip to content

Commit 3e72d0b

Browse files
author
Dmytro Aponasenko
committed
MTA-1602: Sync qmt repository with mainline - Sprint 6
1 parent 4679cd3 commit 3e72d0b

File tree

4 files changed

+7
-15
lines changed

4 files changed

+7
-15
lines changed

dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableForm.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ public function processAssert(
7070
$systemVariableIndex->open();
7171
$systemVariableIndex->getSystemVariableGrid()->searchAndOpen(['code' => $data['code']]);
7272

73-
$formData = $systemVariableNew->getSystemVariableForm()->getData($customVariable);
73+
$formData = $systemVariableNew->getSystemVariableForm()->getData();
7474
$errors = $this->verifyData($dataOrigin, $formData);
7575
\PHPUnit_Framework_Assert::assertEmpty($errors, $errors);
7676

7777
if ($storeOrigin !== null) {
7878
$systemVariableNew->getFormPageActions()->selectStoreView($storeOrigin->getName());
79-
$formData = $systemVariableNew->getSystemVariableForm()->getData($customVariable);
79+
$formData = $systemVariableNew->getSystemVariableForm()->getData();
8080
$errors = $this->verifyData($data, $formData);
8181
\PHPUnit_Framework_Assert::assertEmpty($errors, $errors);
8282
}

dev/tests/functional/tests/app/Magento/Tax/Test/TestCase/CreateTaxRuleEntityTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@
99
use Magento\Tax\Test\Fixture\TaxRule;
1010
use Magento\Tax\Test\Page\Adminhtml\TaxRuleIndex;
1111
use Magento\Tax\Test\Page\Adminhtml\TaxRuleNew;
12-
use Magento\Mtf\ObjectManager;
1312
use Magento\Mtf\TestCase\Injectable;
1413

1514
/**
16-
* Test Flow:
17-
*
15+
* Steps:
1816
* 1. Log in as default admin user.
1917
* 2. Go to Stores > Tax Rules.
2018
* 3. Click 'Add New Tax Rule' button.
@@ -83,8 +81,8 @@ public function testCreateTaxRule(TaxRule $taxRule)
8381
*
8482
* @return void
8583
*/
86-
public static function tearDownAfterClass()
84+
public function tearDown()
8785
{
88-
ObjectManager::getInstance()->create('Magento\Tax\Test\TestStep\DeleteAllTaxRulesStep', [])->run();
86+
$this->objectManager->create('Magento\Tax\Test\TestStep\DeleteAllTaxRulesStep', [])->run();
8987
}
9088
}

dev/tests/functional/tests/app/Magento/Tax/Test/TestCase/UpdateTaxRuleEntityTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@
1010
use Magento\Tax\Test\Page\Adminhtml\TaxRuleIndex;
1111
use Magento\Tax\Test\Page\Adminhtml\TaxRuleNew;
1212
use Magento\Mtf\Fixture\FixtureFactory;
13-
use Magento\Mtf\ObjectManager;
1413
use Magento\Mtf\TestCase\Injectable;
1514

1615
/**
17-
* Test Flow:
18-
*
1916
* Preconditions:
2017
* 1. 1 simple product is created.
2118
* 2. Tax Rule is created.
@@ -105,8 +102,8 @@ public function testUpdateTaxRule(
105102
*
106103
* @return void
107104
*/
108-
public static function tearDownAfterClass()
105+
public function tearDown()
109106
{
110-
ObjectManager::getInstance()->create('Magento\Tax\Test\TestStep\DeleteAllTaxRulesStep', [])->run();
107+
$this->objectManager->create('Magento\Tax\Test\TestStep\DeleteAllTaxRulesStep', [])->run();
111108
}
112109
}

dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/ConfigureProductInCustomerWishlistOnFrontendTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
use Magento\Customer\Test\Fixture\Customer;
1010

1111
/**
12-
* Test Flow:
13-
*
1412
* Preconditions:
1513
* 1. Create customer
1614
* 2. Create composite products
@@ -56,7 +54,6 @@ public function __prepare(Customer $customer)
5654
*/
5755
public function test(Customer $customer, $product)
5856
{
59-
$this->markTestIncomplete('Bug: MAGETWO-32815');
6057
// Preconditions
6158
$product = $this->createProducts($product)[0];
6259
$this->loginCustomer($customer);

0 commit comments

Comments
 (0)