haveInDatabase insert value to table with 1 column

Open
#7 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
php, postgresql
Domain
databases, testing

Research direction

Start with the haveInDatabase entry point and reproduce the reported failure against PostgreSQL using a table containing only a serial id column. Inspect the existing database tests for insertion behavior; done means such a row can be inserted successfully and the behavior is covered by a regression test.

Written by the indexing model from the issue text.

Description

Hello! I have in my postgres DB table with 1 serial column (id) and not able to insert a row into this table in my test. I could insert a row into any other table that has more than 1 column, but not into the table that has the only id column. Is it possible, maybe with another method?

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.