Skip to content

Commit bddb736

Browse files
committed
Fix units tests
1 parent a9c7ebb commit bddb736

2 files changed

Lines changed: 102 additions & 107 deletions

File tree

tests/MoreOptionsTestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ protected function createTestConfig(array $options = []): Config
117117
protected function updateTestConfig(Config $config, array $updates): bool
118118
{
119119
$result = $this->updateItem(Config::class, $config->getID(), $updates);
120-
return $result !== false && !$result->isNewItem();
120+
return $result != false && !$result->isNewItem();
121121
}
122122

123123
/**
@@ -150,14 +150,14 @@ protected function clearLogEntriesContaining(string $pattern): void
150150
if (!isset($this->log_handler)) {
151151
return;
152152
}
153-
153+
154154
$records = $this->log_handler->getRecords();
155155
foreach ($records as $key => $log) {
156156
if (isset($log['message']) && str_contains($log['message'], $pattern)) {
157157
unset($records[$key]);
158158
}
159159
}
160-
160+
161161
$this->log_handler->clear();
162162
foreach (array_values($records) as $record) {
163163
$this->log_handler->handle($record);

0 commit comments

Comments
 (0)