File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
dev/tests/integration/testsuite/Magento/Setup/Console/Command Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,9 @@ public function setUp()
77
77
parent ::setUp ();
78
78
}
79
79
80
+ /**
81
+ * @return string
82
+ */
80
83
private function getEdition ()
81
84
{
82
85
if (file_exists (BP . '/setup/performance-toolkit/profiles/b2b/small.xml ' )) {
@@ -98,6 +101,36 @@ public function tearDown()
98
101
parent ::tearDown ();
99
102
}
100
103
104
+ public static function tearDownAfterClass ()
105
+ {
106
+ parent ::tearDownAfterClass ();
107
+
108
+ /** @var $appCache \Magento\Framework\App\Cache */
109
+ $ appCache = Bootstrap::getObjectManager ()->get (\Magento \Framework \App \Cache::class);
110
+ $ appCache ->clean (
111
+ [
112
+ \Magento \Eav \Model \Cache \Type::CACHE_TAG ,
113
+ \Magento \Eav \Model \Entity \Attribute::CACHE_TAG ,
114
+ ]
115
+ );
116
+ }
117
+
118
+ public static function setUpBeforeClass ()
119
+ {
120
+ $ db = Bootstrap::getInstance ()->getBootstrap ()
121
+ ->getApplication ()
122
+ ->getDbInstance ();
123
+ if (!$ db ->isDbDumpExists ()) {
124
+ throw new \LogicException ('DB dump does not exist. ' );
125
+ }
126
+ $ db ->restoreFromDbDump ();
127
+
128
+ parent ::setUpBeforeClass ();
129
+ }
130
+
131
+ /**
132
+ *
133
+ */
101
134
public function testExecute ()
102
135
{
103
136
$ profile = BP . "/setup/performance-toolkit/profiles/ {$ this ->getEdition ()}/small.xml " ;
You can’t perform that action at this time.
0 commit comments