liip / liip/LiipTestFixturesBundle

[Bug]: Nonexistant service for DB backup does not fail

Open
#213 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
178
Forks
48
PR merge metrics
No merged PRs in 30d

Description

### Preconditions

Latest liip test fixtures bundle.

### Steps to reproduce

Hi had this config:

```yaml
liip_test_fixtures:
cache_db:
sqlite: liip_test_fixtures.services_database_backup.sqlite

```

The service `liip_test_fixtures.services_database_backup.sqlite` has been renamed (AFAIK) to Liip\TestFixturesBundle\Services\DatabaseBackup\SqliteDatabaseBackup but loadFixtures() will function as normal **but be very slow** due to DB backups not working.

### Expected result

loadFixtures() should fail.

### Actual result

loadFixtures gets a lot slower than expected.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Trace the fixture configuration handling and the loadFixtures() path for the obsolete service name `liip_test_fixtures.services_database_backup.sqlite`, comparing it with `Liip\TestFixturesBundle\Services\DatabaseBackup\SqliteDatabaseBackup`. Reproduce the YAML configuration and verify that loadFixtures() fails clearly instead of continuing with slow backups.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, sqlite, symfony
Domain
database, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.