Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ private function assertEavAttributes($product, $actualResponse)
$expectedAttribute = $product->getCustomAttribute($attributeCode);

$assertionMap[] = [
'response_field' => $this->eavAttributesToGrahQlSchemaFieldTranslator($attributeCode),
'response_field' => $this->eavAttributesToGraphQlSchemaFieldTranslator($attributeCode),
'expected_value' => $expectedAttribute ? $expectedAttribute->getValue() : null
];
}
Expand All @@ -677,7 +677,7 @@ private function assertEavAttributes($product, $actualResponse)
* @param string $eavAttributeCode
* @return string
*/
private function eavAttributesToGrahQlSchemaFieldTranslator(string $eavAttributeCode)
private function eavAttributesToGraphQlSchemaFieldTranslator(string $eavAttributeCode)
{
switch ($eavAttributeCode) {
case 'news_from_date':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public function testQueryTestModuleReturnsResults()
}
QUERY;

$reponse = $this->graphQlQuery($query);
$this->assertArrayHasKey('testItem', $reponse);
$testItem = $reponse['testItem'];
$response = $this->graphQlQuery($query);
$this->assertArrayHasKey('testItem', $response);
$testItem = $response['testItem'];
$this->assertArrayHasKey('item_id', $testItem);
$this->assertArrayHasKey('name', $testItem);
$this->assertEquals(1, $testItem['item_id']);
Expand All @@ -51,9 +51,9 @@ public function testQueryTestModuleExtensionAttribute()
}
QUERY;

$reponse = $this->graphQlQuery($query);
$this->assertArrayHasKey('testItem', $reponse);
$testItem = $reponse['testItem'];
$response = $this->graphQlQuery($query);
$this->assertArrayHasKey('testItem', $response);
$testItem = $response['testItem'];
$this->assertArrayHasKey('integer_list', $testItem);
$this->assertEquals([3, 4, 5], $testItem['integer_list']);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SimplifiedselectElement extends SelectElement
protected $optionGroupValue = ".//*[@data-title='%s' or contains(normalize-space(.), %s)]";

/**
* Select value in ropdown which has option groups.
* Select value in dropdown which has option groups.
*
* @param string $value
* @return void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SwitcherElement extends SimpleElement
protected $parentContainer = 'parent::div[@data-role="switcher"]';

/**
* XPath selector for label text on swticher element.
* XPath selector for label text on switcher element.
*
* @var string
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* 3. Open the created order.
* 4. Create partial invoice
* 4. Do cancel Order.
* 5. Perform all assetions.
* 5. Perform all assertions.
*
* @group Order_Management
* @ZephyrId MAGETWO-67787
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Search extends SuggestElement
protected $actionToggle = '.action-toggle';

/**
* Saerch result dropdown.
* Search result dropdown.
*
* @var string
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class AssertProductAttributeIsHtmlAllowed extends AbstractConstraint

/**
* Check whether html tags are using in attribute value.
* Checked tag structure <b><i>atttribute_default_value</p></i></b>
* Checked tag structure <b><i>attribute_default_value</p></i></b>
*
* @param InjectableFixture $product
* @param CatalogProductAttribute $attribute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class WebsiteIds extends DataSource
private $fixtureFactory;

/**
* Rought fixture field data.
* Rough fixture field data.
*
* @var array
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ protected function preparePrice()
}

/**
* Preparation wheather product 'Is Virtual'.
* Preparation whether product 'Is Virtual'.
*
* @return void
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* 1. Login to backend.
* 2. Create a product with invalid from and To dates
* 3. Save the product which generates an error messsage
* 3. Save the product which generates an error message
* 4. Modify the dates to valid values
* 5. Save the product again
* 6. Product is saved successfully
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* Assert search has no results after disabling configurable children.
*/
class AssertConfigurableWithDisabledOtpionCatalogSearchNoResult extends AbstractConstraint
class AssertConfigurableWithDisabledOptionCatalogSearchNoResult extends AbstractConstraint
{
/**
* Assert search has no results and product list in absent after disabling configurable children.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function selectShippingMethod(array $method)
* @param array $method
* @return bool
*/
public function isShippingMethodAvaiable(array $method)
public function isShippingMethodAvailable(array $method)
{
$this->waitForShippingRates();
$selector = sprintf($this->shippingMethod, $method['shipping_method'], $method['shipping_service']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function processAssert(CheckoutOnepage $checkoutOnepage, $billingCheckbox
}

/**
* Returns a string representation of successfull assertion.
* Returns a string representation of successful assertion.
*
* @return string
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class RemoveProductsFromTheCartStep implements TestStepInterface
private $cartPage;

/**
* Quantity of items that should be removed from shoping cart.
* Quantity of items that should be removed from shopping cart.
*
* @var int|null
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Steps:
* 1. Log in to Admin.
* 2. Go to Stores>Configuration>Advanced>admin>Security.
* 3. * 7. Verify admin Acoount Sharing option availability.
* 3. * 7. Verify admin Account Sharing option availability.
*
* @group Config_(PS)
* @ZephyrId MAGETWO-47822
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Magento\ConfigurableProduct\Test\Block\Product\View\ConfigurableOptions;

/**
* Open created configurble product on frontend and choose variation with tier price
* Open created configurable product on frontend and choose variation with tier price
*/
class AssertProductTierPriceOnProductPage extends AssertProductPage
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class WebsiteId extends DataSource
private $fixtureFactory;

/**
* Rought fixture field data.
* Rough fixture field data.
*
* @var array
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function __prepare(FixtureFactory $fixtureFactory)
}

/**
* Prepare VAT ID confguration.
* Prepare VAT ID configuration.
*
* @param ConfigData $vatConfig
* @param string $customerGroup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class ReAuthorizeTokensIntegrationEntityTest extends Injectable
*
* @param FixtureFactory $fixtureFactory
* @param IntegrationIndex $integrationIndex
* @retun void
* @return void
*/
public function __inject(IntegrationIndex $integrationIndex, FixtureFactory $fixtureFactory)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ abstract class Sidebar extends Block
protected $addToOrderProductName = './/tr/td[.="%s"]';

/**
* Add productz to order.
* Add products to order.
*
* @param array $products
* @return void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* 2. Sales > Orders.
* 3. Open the created order.
* 4. Do cancel Order.
* 5. Perform all assetions.
* 5. Perform all assertions.
*
* @group Order_Management
* @ZephyrId MAGETWO-28191
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class CreateCustomOrderStatusEntityTest extends Injectable
/* end tags */

/**
* Order staus page.
* Order status page.
*
* @var OrderStatusIndex
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Magento\Mtf\Constraint\AbstractConstraint;

/**
* Assert sales rule delte message.
* Assert sales rule delete message.
*/
class AssertCartPriceRuleSuccessDeleteMessage extends AbstractConstraint
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ public function __inject(
/**
* Run Lock user when creating new integration test.
*
* @param Integration $initintegration
* @param Integration $initIntegration
* @param Integration $integration
* @param int $attempts
* @param User $customAdmin
* @param string $configData
* @return void
*/
public function test(
Integration $initintegration,
Integration $initIntegration,
Integration $integration,
$attempts,
User $customAdmin,
Expand All @@ -106,15 +106,15 @@ public function test(
['configData' => $this->configData]
)->run();
$customAdmin->persist();
$initintegration->persist();
$initIntegration->persist();

// login to backend with new user
$this->adminAuthLogin->open();
$this->adminAuthLogin->getLoginBlock()->fill($customAdmin);
$this->adminAuthLogin->getLoginBlock()->submit();

// Steps
$filter = ['name' => $initintegration->getName()];
$filter = ['name' => $initIntegration->getName()];
$this->integrationIndexPage->open();
$this->integrationIndexPage->getIntegrationGrid()->searchAndOpen($filter);
for ($i = 0; $i < $attempts; $i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ public function processAssert(CheckoutOnepage $checkoutOnepage, $shippingMethod,
'Shipping rate has not been changed.'
);
}
$shippingAvaialability = $isShippingAvailable ? 'avaiable' : 'unavailable';
$shippingAvailability = $isShippingAvailable ? 'available' : 'unavailable';
\PHPUnit_Framework_Assert::assertEquals(
$isShippingAvailable,
$checkoutOnepage->getShippingMethodBlock()->isShippingMethodAvaiable($shippingMethod),
"Shipping rates for {$shippingMethod['shipping_service']} should be $shippingAvaialability."
$checkoutOnepage->getShippingMethodBlock()->isShippingMethodAvailable($shippingMethod),
"Shipping rates for {$shippingMethod['shipping_service']} should be $shippingAvailability."
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Magento\Shipping\Test\Constraint\AssertCityBasedShippingRateChanged;

/**
* Fill shipping addresses and assert rates relouding.
* Fill shipping addresses and assert rates reloading.
*/
class FillShippingAddressesStep implements TestStepInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function selectStoreGroup(Store $store)
}

/**
* Check if correspondent "Store" is present in "Store" swither or not.
* Check if correspondent "Store" is present in "Store" switcher or not.
*
* @param Store $store
* @return bool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public function selectMassAction($massActionSelection)
}

/**
* Peform action using the dropdown above the grid.
* Perform action using the dropdown above the grid.
*
* @param array|string $action [array -> key = value from first select; value => value from subselect]
* @return void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function setAlertText($text)
}

/**
* Wait until modal window will disapper.
* Wait until modal window will disappear.
*
* @return void
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Steps:
* 1. Navigate to backend.
* 2. Go to grid page
* 3. Perfrom full text search
* 3. Perform full text search
* 5. Perform Asserts
*
* @group Ui
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected function prepareData(FixtureInterface $fixture)
*
* @param array $data
* @param SimpleElement $context
* @retun void
* @return void
*/
protected function fillFields(array $data, SimpleElement $context)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Magento\Mtf\Constraint\AbstractConstraint;

/**
* Check that created widget displayed on frontent on Home page and on Advanced Search and
* Check that created widget displayed on frontend on Home page and on Advanced Search and
* after click on widget link on frontend system redirects you to cms page.
*/
class AssertWidgetCmsPageLink extends AbstractConstraint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ abstract public function cleanup();
abstract protected function getSetupDbDumpFilename();

/**
* Is dump esxists
* Is dump exists
*
* @return bool
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected function getSetupDbDumpFilename()
}

/**
* Is dump esxists
* Is dump exists
*
* @return bool
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function setUp()
\Magento\Framework\App\Arguments\FileResolver\Primary::class
)->disableOriginalConstructor()->getMock();

/* Enable Validation regardles of MAGE_MODE */
/* Enable Validation regardless of MAGE_MODE */
$validateStateMock = $this->getMockBuilder(
\Magento\Framework\Config\ValidationStateInterface::class
)->disableOriginalConstructor()->getMock();
Expand Down
Loading