[Admin] Apply static content review fixes

This commit is contained in:
Kamil Kokot 2016-07-04 17:06:58 +02:00
parent 3175ce1982
commit eb4395ee6c
No known key found for this signature in database
GPG key ID: 7BD76F7054D93C89
3 changed files with 5 additions and 6 deletions

View file

@ -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

View file

@ -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]),

View file

@ -43,5 +43,4 @@ class UpdatePage extends BaseUpdatePage implements UpdatePageInterface
'body' => '#sylius_static_content_body',
]);
}
}