Skip to content

Commit

Permalink
first test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
louannecostes committed Dec 19, 2024
1 parent faaabbe commit 1052b74
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function setParams(): void
public function getWelcomeGaeloWsiProcessing()
{
$request = $this->httpClientInterface->rawRequest("GET", "/", null, null);
return $request->getBody();
return $request;
}

}
11 changes: 8 additions & 3 deletions GaelO2/tests/Unit/TestServices/GaelOWsiProcessingServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Tests\TestCase;
use Illuminate\Support\Facades\App;


class GaelOWsiProcessingServiceTest extends TestCase
{
private GaelOWsiProcessingService $gaeloWsiProcessingService;
Expand All @@ -14,12 +15,16 @@ protected function setUp():void{

parent::setUp();
$this->gaeloWsiProcessingService = App::make(GaelOWsiProcessingService::class);
// $this->markTestSkipped();
}

public function testWelcome()
{
$resultat=$this->gaeloWsiProcessingService->getWelcomeGaeloWsiProcessing();
$resultat->assertStatus(200);
// Call the service method
$resultat = $this->gaeloWsiProcessingService->getWelcomeGaeloWsiProcessing();

// Assert the status code and the response body
$this->assertEquals(200, $resultat->getStatusCode());
$this->assertEquals('Welcome to GaelO Pathology Processing Backend !', $resultat->getBody());
}
}

0 comments on commit 1052b74

Please sign in to comment.