You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"expected FPC tag on category {$name} id {$categoryId}"
109
107
);
110
-
$this->assertMatchesRegularExpression('/<div.*class=.*products-grid.*>/', $response->getContent(), $response->getContent(), 'Backend content was not rendered.');
108
+
109
+
if ($hasProducts) {
110
+
$this->assertMatchesRegularExpression('/<div.*class=.*products-grid.*>/', $response->getContent(), 'Backend content was not rendered.');
111
+
}
111
112
}
112
113
113
114
/**
@@ -117,9 +118,6 @@ public function testCategoryPlpMissBackendRenderOn(int $categoryId, string $name
"expected FPC tag on category {$name} id {$categoryId}"
165
160
);
166
-
$this->assertDoesNotMatchRegularExpression('/<div.*class=.*products-grid.*>/', $response->getContent(), $response->getContent(), 'Backend content was not rendered.');
161
+
162
+
if ($hasProducts) {
163
+
$this->assertDoesNotMatchRegularExpression('/<div.*class=.*products-grid.*>/', $response->getContent(), 'Backend content was rendered.');
164
+
}
167
165
}
168
166
169
167
/**
@@ -173,9 +171,6 @@ public function testCategoryPlpMissBackendRenderOff(int $categoryId, string $nam
"expected FPC tag on category {$name} id {$categoryId}"
229
221
);
230
-
$this->assertMatchesRegularExpression('/<div.*class=.*products-grid.*>/', $response->getContent(), $response->getContent(), 'Backend content was not rendered.');
222
+
223
+
if ($hasProducts) {
224
+
$this->assertMatchesRegularExpression('/<div.*class=.*products-grid.*>/', $response->getContent(), 'Backend content was not rendered.');
225
+
}
231
226
}
232
227
233
228
/**
@@ -238,9 +233,6 @@ public function testCategoryPlpMissBackendRenderWhiteList(int $categoryId, strin
0 commit comments