From 23f4dd66b9dbf9eeb4aff6ecc9da7be37fef2136 Mon Sep 17 00:00:00 2001 From: "florian.azizian" <florian.azizian@maarch.org> Date: Mon, 27 Apr 2020 14:06:47 +0100 Subject: [PATCH] FEAT #13126 TIME 0:05 add canConvert TU --- test/unitTests/app/resource/LinkControllerTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unitTests/app/resource/LinkControllerTest.php b/test/unitTests/app/resource/LinkControllerTest.php index 1d52394143b..840f5fe6386 100755 --- a/test/unitTests/app/resource/LinkControllerTest.php +++ b/test/unitTests/app/resource/LinkControllerTest.php @@ -121,6 +121,7 @@ class LinkControllerTest extends TestCase $this->assertNotEmpty($responseBody['linkedResources'][0]['status']); $this->assertNotEmpty($responseBody['linkedResources'][0]['destination']); $this->assertNotEmpty($responseBody['linkedResources'][0]['destinationLabel']); + $this->assertIsBool($responseBody['linkedResources'][0]['canConvert']); $response = $linkController->getLinkedResources($request, new \Slim\Http\Response(), ['resId' => self::$secondResourceId]); $this->assertSame(200, $response->getStatusCode()); @@ -132,6 +133,7 @@ class LinkControllerTest extends TestCase $this->assertNotEmpty($responseBody['linkedResources'][0]['status']); $this->assertNotEmpty($responseBody['linkedResources'][0]['destination']); $this->assertNotEmpty($responseBody['linkedResources'][0]['destinationLabel']); + $this->assertIsBool($responseBody['linkedResources'][0]['canConvert']); } public function testUnlinkResources() -- GitLab