• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sonata-project / SonataMediaBundle / 3810 / 2
51%
3.x: 51%

Build:
DEFAULT BRANCH: 3.x
Ran 02 Aug 2019 08:37AM UTC
Files 137
Run time 11s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Jul 2019 09:38AM UTC coverage: 51.403% (-0.02%) from 51.427%
3810.2

cron

travis-ci

core23
Fixed deletion of images with id greater than 1000 (#1592)

* Fixed deletion of images with id greater than 1000

Inside the $this->getReferenceImage() method, the id of the $media object is used, but at the time of the postRemove event, the $media object is detached from an EntityManager and its id is null. During the postRemove event, the $media->getId() method returns null, and the $this->getReferenceImage() method returns the wrong path and the file remains in the file system as garbage. My changes fix this.

* Add testPostRemove().

Test for "Fix deletion of images with id greater than 1000".

* Update testPostRemove().

* The visibility of the property "clones" is changed to private.

* Adapted test "testPostRemove" to check the data in the private property "clones" instead of the protected.

* Update src/Provider/BaseProvider.php

Co-Authored-By: Javier Spagnoletti <phansys@gmail.com>

* Update src/Provider/BaseProvider.php

Co-Authored-By: Javier Spagnoletti <phansys@gmail.com>

* Update tests/Provider/BaseProviderTest.php

Co-Authored-By: Javier Spagnoletti <phansys@gmail.com>

* Adding a separate version of the testPostRemove(), which can be run in the current branch 3, and in the proposed me.

* Revert "Adding a separate version of the testPostRemove(), which can be run in the current branch 3, and in the proposed me."

This reverts commit bab31c8e3.

* Adding a separate version of the testPostRemove(), which can be run in the current branch 3, and in the proposed me.

* Remove unnecessary comment.

* Removed unnecessary comment

* Reorganization of tests for compliance with the requirements.

* Update tests/Provider/BaseProviderTest.php

Co-Authored-By: Javier Spagnoletti <phansys@gmail.com>

* Fixes for FlintCI.

* Fixed deletion of images with id greater than 1000

Inside the $this->getReferenceImage() method, the id of the $media object is used, but at the ti... (continued)

2180 of 4241 relevant lines covered (51.4%)

4.18 hits per line

Source Files on job 3810.2
  • Tree
  • List 0
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3614
  • Travis Job 3810.2
  • f25bc3f4 on github
  • Prev Job for on 3.x (#3809.1)
  • Next Job for on 3.x (#3813.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc