Add 'timezone' config support for Db model

Open
#16 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
mysql, php
Domain
database

Research direction

Start by locating the Db model's MySQL connection setup and the tests that currently depend on database timezone configuration. Determine how suite configuration is passed to the model, then define the timezone option and verify that tests can select a specific timezone without relying on the database's global configuration.

Written by the indexing model from the issue text.

Description

What are you trying to achieve?

Specific timezone when use Db Model connect to mysql , then the test logic won't rely on database config.

What do you get instead?

Can't achieve this for now.

Provide console output if related. Use -vvv mode for more details.

# paste output here

Provide test source code if related

// paste test
Details
  • Codeception version:
  • PHP Version:
  • Operating System:
  • Installation type: Phar || Composer
  • List of installed packages (composer show)
  • Suite configuration:
# paste suite config here
Dominant language
PHP
Stars
23
Forks
31
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Codeception/module-db

All issues in Codeception/module-db

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.