|
Ran
|
Jobs
8
|
Files
137
|
Run time
6min
|
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)
2169 of 4214 relevant lines covered (51.47%)
33.54 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 3804.1 | 0 |
51.43 |
Travis Job 3804.1 | |
| 2 | 3804.2 | 0 |
51.4 |
Travis Job 3804.2 | |
| 6 | 3804.6 (COMPOSER_FLAGS="--prefer-lowest") | 0 |
48.97 |
Travis Job 3804.6 | |
| 7 | 3804.7 (SYMFONY=3.4.*) | 0 |
51.21 |
Travis Job 3804.7 | |
| 8 | 3804.8 (DOCTRINE_ODM=1.*) | 0 |
51.21 |
Travis Job 3804.8 | |
| 9 | 3804.9 (SONATA_CORE=3.*) | 0 |
51.21 |
Travis Job 3804.9 | |
| 10 | 3804.10 (SONATA_ADMIN=3.*) | 0 |
51.21 |
Travis Job 3804.10 | |
| 13 | 3804.13 (DOCTRINE_ODM='dev-master as 1.x-dev') | 0 |
51.21 |
Travis Job 3804.13 |