Skip to content

Commit 814769a

Browse files
committed
B2B-2256: "countries" and "country" GraphQl query has no cache identity
1 parent ee324bc commit 814769a

File tree

3 files changed

+1283
-0
lines changed

3 files changed

+1283
-0
lines changed

dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQlAbstract.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,4 +206,18 @@ protected function assertResponseFields($actualResponse, $assertionMap)
206206
);
207207
}
208208
}
209+
210+
/**
211+
* Tear down test and flush page cache
212+
*
213+
* @return void
214+
*/
215+
protected function tearDown(): void
216+
{
217+
parent::tearDown();
218+
$appDir = dirname(Bootstrap::getInstance()->getAppTempDir());
219+
$out = '';
220+
// phpcs:ignore Magento2.Security.InsecureFunction
221+
exec("php -f {$appDir}/bin/magento cache:flush full_page", $out);
222+
}
209223
}

0 commit comments

Comments
 (0)