mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[Admin] Apply static content review fixes
This commit is contained in:
parent
3175ce1982
commit
eb4395ee6c
3 changed files with 5 additions and 6 deletions
|
|
@ -12,4 +12,4 @@ Feature: Deleting a static content
|
|||
Given the store has static content "Krzysztof Krawczyk"
|
||||
When I delete static content "Krzysztof Krawczyk"
|
||||
Then I should be notified that it has been successfully deleted
|
||||
And the static content "Krzysztof Krawczyk" should no longer exist in the registry
|
||||
And the static content "Krzysztof Krawczyk" should no longer exist in the store
|
||||
|
|
|
|||
|
|
@ -138,14 +138,14 @@ final class ManagingStaticContentsContext implements Context
|
|||
Assert::same(
|
||||
(int) $amount,
|
||||
$this->indexPage->countItems(),
|
||||
'Amount of currencies should be equal %s, but was %2$s.'
|
||||
'Amount of static contents should be equal %s, but was %2$s.'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then the static content :title should not be added
|
||||
*/
|
||||
public function theCurrencyShouldNotBeAdded($title)
|
||||
public function theStaticContentShouldNotBeAdded($title)
|
||||
{
|
||||
if (!$this->indexPage->isOpen()) {
|
||||
$this->indexPage->open();
|
||||
|
|
@ -202,9 +202,9 @@ final class ManagingStaticContentsContext implements Context
|
|||
}
|
||||
|
||||
/**
|
||||
* @Then the static content :title should no longer exist in the registry
|
||||
* @Then the static content :title should no longer exist in the store
|
||||
*/
|
||||
public function theStaticContentShouldNoLongerExistInTheRegistry($title)
|
||||
public function theStaticContentShouldNoLongerExistInTheStore($title)
|
||||
{
|
||||
Assert::false(
|
||||
$this->indexPage->isSingleResourceOnPage(['title' => $title]),
|
||||
|
|
|
|||
|
|
@ -43,5 +43,4 @@ class UpdatePage extends BaseUpdatePage implements UpdatePageInterface
|
|||
'body' => '#sylius_static_content_body',
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue