partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit a1e1f8c3ce03ed9bfbcea50e3dc9a2751d9a1cd3
parent 7a97a5baf9cceccd39e09875dcfef74ab523f9a0
Author: Felicitus <felicitus@felicitus.org>
Date:   Mon, 14 Sep 2015 17:50:51 +0200

Ensure that the returned response object has the image attribute

Diffstat:
Msrc/PartKeepr/UploadedFileBundle/Tests/FileControllerTest.php | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/PartKeepr/UploadedFileBundle/Tests/FileControllerTest.php b/src/PartKeepr/UploadedFileBundle/Tests/FileControllerTest.php @@ -30,6 +30,8 @@ class FileControllerTest extends WebTestCase $response = json_decode($client->getResponse()->getContent()); + $this->assertObjectHasAttribute("image", $response); + $property = "@id"; $uri = $response->image->$property; $uri .= "/getMimeTypeIcon";