|
Ran
|
Files
137
|
Run time
7s
|
Badge
README BADGES
|
cron
travis-ci
<a href="https://github.com/sonata-project/SonataMediaBundle/commit/<a class=hub.com/sonata-project/SonataMediaBundle/commit/f25bc3f465d89e1a0e75d6f9b277db64e0b4b014">f25bc3f46<a href="https://github.com/sonata-project/SonataMediaBundle/commit/f25bc3f465d89e1a0e75d6f9b277db64e0b4b014">">Fixed deletion of images with id greater than 1000 (#1592) * Fixed deletion of images with id greater than 1000 Inside the $this-&gt;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-&gt;getId() method returns null, and the $this-&gt;getReferenceImage() method returns the wrong path and the file remains in the file system as garbage. My changes fix this. * Add testPostRemove(). Test for &quot;Fix deletion of images with id greater than 1000&quot;. * Update testPostRemove(). * The visibility of the property &quot;clones&quot; is changed to private. * Adapted test &quot;testPostRemove&quot; to check the data in the private property &quot;clones&quot; instead of the protected. * Update src/Provider/BaseProvider.php Co-Authored-By: Javier Spagnoletti &lt;phansys@gmail.com&gt; * Update src/Provider/BaseProvider.php Co-Authored-By: Javier Spagnoletti &lt;phansys@gmail.com&gt; * Update tests/Provider/BaseProviderTest.php Co-Authored-By: Javier Spagnoletti &lt;phansys@gmail.com&gt; * Adding a separate version of the testPostRemove(), which can be run in the current branch 3, and in the proposed me. * Revert &quot;Adding a separate version of the testPostRemove(), which can be run in the current branch 3, and in the proposed me." This reverts commit </a><a class="double-link" href="https://github.com/sonata-project/SonataMediaBundle/commit/<a class="double-link" href="https://github.com/sonata-project/SonataMediaBundle/commit/bab31c8e3b3d662651634a4d90ccdd456adddde1">bab31c8e3</a>">bab31c8e3</a><a href="https://github.com/sonata-project/SonataMediaBundle/commit/f25bc3f465d89e1a0e75d6f9b277db64e0b4b014">. * Adding a separate version of the testPostRemove(), which can be run in the current branch 3, and in the proposed me. * Remove un... (continued)
2181 of 4241 relevant lines covered (51.43%)
4.19 hits per line
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|