Skip to content

Commit

Permalink
Qual: Improve test message on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Mar 15, 2024
1 parent c7ad91c commit e5cf547
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/phpunit/RestAPIContactTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2010 Laurent Destailleur <[email protected]>
* Copyright (C) 2023 Alexandre Janniaux <[email protected]>
* Copyright (C) 2024 MDW <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -229,7 +230,7 @@ public function testRestUpdateContact($objid)
print_r($updateResponse);

// Check if the updated fields match the changes you made
$this->assertTrue($updateResponse['firstname'] === $updateBody['firstname'], 'Update might have failed');
$this->assertEquals($updateBody['firstname'], $updateResponse['firstname'], 'Update failed for request body: '.$updateRequestBody);

// Deleting the Contact
/*
Expand Down

0 comments on commit e5cf547

Please sign in to comment.