Skip to content

Commit

Permalink
Fix up test
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Apr 5, 2024
1 parent 347c7e0 commit 21814d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/Sandbox/src/Controller/CalendarController.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected function _populateDemoData(array $options) {
for ($i = 0; $i < $count; $i++) {
$config = $this->Events->getConnection()->config();
$driver = $config['driver'];
$random = strpos($driver, 'Sqlite') !== false ? 'RANDOM()' : 'RAND()';
$random = str_contains($driver, 'Mysql') ? 'RAND()' : 'RANDOM()';

/** @var \Data\Model\Entity\State $state */
$state = $this->States
Expand Down

0 comments on commit 21814d3

Please sign in to comment.