Skip to content

Commit

Permalink
[Behat] Remove iSaveMyChanges methods from all API contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafikooo committed Mar 15, 2023
1 parent 95b04c2 commit 2bdcad0
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 131 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,6 @@ public function iAddIt(): void
$this->client->create();
}

/**
* @When I save my changes
*/
public function iSaveMyChanges(): void
{
$response = $this->client->update();
$this->responseChecker->isUpdateSuccessful($response);
}

/**
* @When I delete administrator with email :adminUser
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,14 +321,6 @@ public function iMakeCatalogPromotionOperateFrom(string $startDate): void
$this->client->updateRequestData(['startDate' => $startDate]);
}

/**
* @When I save my changes
*/
public function iSaveMyChanges(): void
{
$this->client->update();
}

/**
* @When I browse catalog promotions
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,6 @@ public function iWantToModifyThisChannel(ChannelInterface $channel): void
$this->client->buildUpdateRequest(Resources::CHANNELS, $channel->getCode());
}

/**
* @When I save my changes
*/
public function iSaveMyChanges(): void
{
$this->client->update();
}

/**
* @Then I should be notified that it has been successfully created
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,6 @@ public function iDisableIt(): void
$this->client->addRequestData('enabled', false);
}

/**
* @When I save my changes
* @When I try to save changes
*/
public function iSaveMyChanges(): void
{
$this->client->update();
}

/**
* @When I name the province :provinceName
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,6 @@ public function iWantToEditThisCustomerGroup(CustomerGroupInterface $customerGro
$this->client->buildUpdateRequest(Resources::CUSTOMER_GROUPS, $customerGroup->getCode());
}

/**
* @When I (try to) save my changes
*/
public function iSaveMyChanges(): void
{
$this->client->update();
}

/**
* @When I browse customer groups
* @When I want to browse customer groups
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,6 @@ public function iChangeRatioTo(string $ratio): void
$this->client->updateRequestData(['ratio' => $ratio]);
}

/**
* @When I save my changes
*/
public function iSaveMyChanges(): void
{
$this->client->update();
}

/**
* @When /^I delete the (exchange rate between "[^"]+" and "[^"]+")$/
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,6 @@ public function iRenameItToIn(string $name, string $language): void
$this->client->updateRequestData(['translations' => [$language => ['name' => $name, 'locale' => $language]]]);
}

/**
* @When I (try to) save my changes
*/
public function iSaveMyChanges(): void
{
$this->client->update();
}

/**
* @Then I should be notified that it has been successfully edited
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,6 @@ public function iAddIt(): void
$this->client->create();
}

/**
* @When I (try to) save my changes
*/
public function iSaveMyChanges(): void
{
$this->client->update();
}

/**
* @Then I should see :count product options in the list
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,6 @@ public function iChangeItsCommentTo(?string $comment = ''): void
$this->client->updateRequestData(['comment' => $comment]);
}

/**
* @When I (try to) save my changes
*/
public function iSaveMyChanges(): void
{
$this->client->update();
}

/**
* @When I choose :rating as its rating
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,6 @@ public function iChooseMainTaxon(TaxonInterface $taxon): void
$this->client->updateRequestData(['mainTaxon' => $this->iriConverter->getIriFromItem($taxon)]);
}

/**
* @When I (try to) save my changes
*/
public function iSaveMyChanges(): void
{
$this->client->update();
}

/**
* @When I filter them by :taxon taxon
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,6 @@ public function iSpecifyItsDescriptionAs(string $description): void
$this->client->addRequestData('description', $description);
}

/**
* @When I save my changes
*/
public function iSaveMyChanges(): void
{
$this->client->update();
}

/**
* @Then I should be notified that shipping category with this code already exists
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,6 @@ public function iWantToModifyShippingMethod(ShippingMethodInterface $shippingMet
$this->client->buildUpdateRequest(Resources::SHIPPING_METHODS, $shippingMethod->getCode());
}

/**
* @When I (try to) save my changes
*/
public function iSaveMyChanges(): void
{
$this->client->update();
}

/**
* @When I sort the shipping methods :sortType by code
* @When I switch the way shipping methods are sorted :sortType by code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,6 @@ public function iDescribeItAs(string $description): void
$this->client->addRequestData('description', $description);
}

/**
* @When I (try to) save my changes
*/
public function iSaveMyChanges(): void
{
$this->client->update();
}

/**
* @When I browse tax categories
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,6 @@ public function iRemoveItsAmount(): void
$this->client->addRequestData('amount', '');
}

/**
* @When I save my changes
* @When I try to save my changes
*/
public function iSaveMyChanges(): void
{
$this->client->update();
}

/**
* @When I browse tax rates
*/
Expand Down
8 changes: 0 additions & 8 deletions src/Sylius/Behat/Context/Api/Admin/ManagingZonesContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,6 @@ public function iRemoveTheZoneMember(ZoneInterface $zone): void
$this->removeZoneMember($zone);
}

/**
* @When I save my changes
*/
public function iSaveMyChanges(): void
{
$this->client->update();
}

/**
* @Then the zone named :zone with the :country country member should appear in the registry
*/
Expand Down
8 changes: 0 additions & 8 deletions src/Sylius/Behat/Context/Api/Shop/CustomerContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,6 @@ public function iSpecifyCustomerTheEmail(string $email = ''): void
$this->client->addRequestData('email', $email);
}

/**
* @When I (try to) save my changes
*/
public function iSaveMyChanges(): void
{
$this->client->update();
}

/**
* @When I specify the current password as :password
*/
Expand Down

0 comments on commit 2bdcad0

Please sign in to comment.