Skip to content

Commit 5f34946

Browse files
author
Willem Wigman
committed
#4 Reveal mystery guests
1 parent 5f1c054 commit 5f34946

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

src/view/frontend/layout/cms_page_view_selectable_0_test-file.xml

Whitespace-only changes.

tests/Integration/CategoryFrontendControllerTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class CategoryFrontendControllerTest extends AbstractFrontendControllerTest
1717
{
1818
/** @var int */
19-
const CATEGORY_ID = 5;
19+
const CATEGORY_ID_FROM_FIXTURE = 5;
2020

2121
/** @var CategoryRepositoryInterface $repository */
2222
protected $repository;
@@ -82,7 +82,7 @@ protected function givenGlobalCustomUpdateSelected()
8282
*/
8383
protected function givenDefaultCustomUpdateSelected()
8484
{
85-
$this->setCustomUpdate(self::CATEGORY_ID);
85+
$this->setCustomUpdate(self::CATEGORY_ID_FROM_FIXTURE);
8686
}
8787

8888
/**
@@ -110,7 +110,7 @@ protected function setCustomUpdate(int $forCategoryId, string $fileName = self::
110110
protected function whenCategoryViewed(?int $categoryId = null)
111111
{
112112
if (!$categoryId) {
113-
$categoryId = self::CATEGORY_ID;
113+
$categoryId = self::CATEGORY_ID_FROM_FIXTURE;
114114
}
115115
$this->dispatch("catalog/category/view/id/{$categoryId}");
116116
}
@@ -122,7 +122,7 @@ protected function thenContainsGlobalUpdateHandle()
122122

123123
protected function thenContainsDefaultUpdateHandle()
124124
{
125-
$this->containsUpdateHandle(self::CATEGORY_ID, self::TEST_FILE);
125+
$this->containsUpdateHandle(self::CATEGORY_ID_FROM_FIXTURE, self::TEST_FILE);
126126
}
127127

128128
/**
@@ -146,7 +146,7 @@ protected function containsUpdateHandle(
146146
* @return CategoryInterface
147147
* @throws NoSuchEntityException
148148
*/
149-
protected function getCategory(int $categoryId = self::CATEGORY_ID): CategoryInterface
149+
protected function getCategory(int $categoryId = self::CATEGORY_ID_FROM_FIXTURE): CategoryInterface
150150
{
151151
if (!$this->category) {
152152
$this->category = $this->repository->get($categoryId);

tests/Integration/PageFrontendControllerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class PageFrontendControllerTest extends AbstractFrontendControllerTest
1313
{
1414
/** @var string */
15-
const PAGE_IDENTIFIER = 'page100';
15+
const PAGE_ID_FROM_FIXTURE = 'page100';
1616

1717
/** @var PageLayoutUpdateManager */
1818
protected $layoutManager;
@@ -98,7 +98,7 @@ protected function thenContainsGlobalUpdateHandle()
9898

9999
protected function thenContainsDefaultUpdateHandle()
100100
{
101-
$this->containsUpdateHandle(self::PAGE_IDENTIFIER);
101+
$this->containsUpdateHandle(self::PAGE_ID_FROM_FIXTURE);
102102
}
103103

104104
/**
@@ -131,7 +131,7 @@ protected function setCustomUpdate(int $forPageId, string $fileName = self::TEST
131131
* @param string $pageIdentifier
132132
* @return Page
133133
*/
134-
protected function createPage(?string $pageIdentifier = self::PAGE_IDENTIFIER): Page
134+
protected function createPage(?string $pageIdentifier = self::PAGE_ID_FROM_FIXTURE): Page
135135
{
136136
$page = $this->pageFactory->create(['customLayoutRepository' => $this->repository]);
137137
$page->setStoreId(self::STORE_ID);

tests/Integration/ProductFrontendControllerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class ProductFrontendControllerTest extends AbstractFrontendControllerTest
1515
{
1616
/** @var string */
17-
const PRODUCT_SKU = 'simple_product_1';
17+
const PRODUCT_SKU_FROM_FIXTURE = 'simple_product_1';
1818

1919
/** @var ProductRepositoryInterface $repository */
2020
protected $repository;
@@ -110,7 +110,7 @@ protected function thenContainsGlobalUpdateHandle()
110110

111111
protected function thenContainsDefaultUpdateHandle()
112112
{
113-
$this->containsUpdateHandle(self::PRODUCT_SKU);
113+
$this->containsUpdateHandle(self::PRODUCT_SKU_FROM_FIXTURE);
114114
}
115115

116116
/**
@@ -152,7 +152,7 @@ protected function setCustomUpdate(int $forProductId, string $fileName = self::T
152152
* @return ProductInterface
153153
* @throws NoSuchEntityException
154154
*/
155-
protected function getProduct(string $sku = self::PRODUCT_SKU): ProductInterface
155+
protected function getProduct(string $sku = self::PRODUCT_SKU_FROM_FIXTURE): ProductInterface
156156
{
157157
if (!$this->product) {
158158
$this->product = $this->repository->get($sku);

0 commit comments

Comments
 (0)