@@ -17,8 +17,8 @@ class CategoryCacheTest extends \Magento\TestFramework\TestCase\AbstractControll
17
17
public static function getCategoryProvider (): array
18
18
{
19
19
return [
20
- ['categoryId ' => 20 , 'name ' => 'Ladies ' ],
21
- ['categoryId ' => 21 , 'name ' => 'Ladies Tops ' ],
20
+ ['categoryId ' => 20 , 'name ' => 'Women ' ],
21
+ ['categoryId ' => 21 , 'name ' => 'Women > Tops ' ],
22
22
];
23
23
}
24
24
@@ -48,6 +48,11 @@ public function testCategoryPlpMiss(int $categoryId, string $name): void
48
48
$ response ->getHeader ('X-Magento-Cache-Debug ' )->getFieldValue (),
49
49
"expected MISS on category {$ name } id {$ categoryId }"
50
50
);
51
+ $ this ->assertContains (
52
+ 'FPC ' ,
53
+ explode (', ' , $ response ->getHeader ('X-Magento-Tags ' )->getFieldValue ()),
54
+ "expected FPC tag on category {$ name } id {$ categoryId }"
55
+ );
51
56
}
52
57
53
58
protected function resetResponse (): void
@@ -111,17 +116,6 @@ function (ResponseHttp $response, $name, $value, $replace)
111
116
$ this ->assertEquals (200 , $ response ->getHttpResponseCode (), 'Request failed ' );
112
117
}
113
118
114
- public function xtestCategoryPlpHit (int $ categoryId , string $ name ): void
115
- {
116
- $ this ->dispatch ("catalog/category/view/id/ {$ categoryId }" );
117
- $ response = $ this ->getResponse ();
118
- $ this ->assertEquals (
119
- 'HIT ' ,
120
- $ response ->getHeader ('X-Magento-Cache-Debug ' )->getFieldValue (),
121
- "expected HIT on category {$ name } id {$ categoryId }"
122
- );
123
- }
124
-
125
119
public function testFullPageCacheAvailable (): void
126
120
{
127
121
$ types = $ this ->cacheManager ->getAvailableTypes ();
0 commit comments