Skip to content

Conversation

@ThomasKettner
Copy link

Summary

  • fix incorrect time format when building SQL queries
  • test that execution time is formatted with minutes correctly

Testing

  • phpunit --configuration phpunit.xml.dist (fails: command not found)

https://chatgpt.com/codex/tasks/task_e_68430e0392708322a0f077119de5747c

Comment on lines +104 to +106
$reflection = new \ReflectionClass(TableCondition::class);
$method = $reflection->getMethod('buildQuery');
$method->setAccessible(true);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should not test private methods that are an implementation detail.

$timeComparisonSql = 'CONCAT(DATE('.$timeComparisonSql.'), ?)';

$params[] = ' '.date('H:m:s', (int) $trigger->cnd_table_executionTime);
$params[] = ' '.date('H:i:s', (int) $trigger->cnd_table_executionTime);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants