Rename WorkflowStorage::flush() to WorkflowStorage::truncate()
[MAILPOET-4531]
This commit is contained in:
@@ -131,7 +131,7 @@ class WorkflowStorage {
|
||||
}, (array)$data);
|
||||
}
|
||||
|
||||
public function flush(): bool {
|
||||
public function truncate(): bool {
|
||||
$workflowTable = esc_sql($this->workflowTable);
|
||||
$versionTable = esc_sql($this->versionsTable);
|
||||
return $this->wpdb->query("truncate $workflowTable;") === true &&
|
||||
|
@@ -132,7 +132,7 @@ class WorkflowPutEndpointTest extends AutomationTest
|
||||
}
|
||||
|
||||
public function _after() {
|
||||
$this->workflowStorage->flush();
|
||||
$this->workflowStorage->truncate();
|
||||
parent::_after();
|
||||
}
|
||||
}
|
||||
|
@@ -73,7 +73,7 @@ class WorkflowsCreateFromTemplateTest extends AutomationTest {
|
||||
}
|
||||
|
||||
public function _after() {
|
||||
$this->workflowStorage->flush();
|
||||
$this->workflowStorage->truncate();
|
||||
parent::_after();
|
||||
}
|
||||
|
||||
|
@@ -170,7 +170,7 @@ class WorkflowsGetTest extends AutomationTest {
|
||||
}
|
||||
|
||||
public function _after() {
|
||||
$this->workflowStorage->flush();
|
||||
$this->workflowStorage->truncate();
|
||||
foreach ($this->userIds as $userId) {
|
||||
is_multisite() ? wpmu_delete_user($userId) : wp_delete_user($userId);
|
||||
}
|
||||
|
Reference in New Issue
Block a user