From c7dfc7c933064729c35654fb5e8d0f822689d5f0 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 6 Jan 2022 14:32:11 -0500 Subject: [PATCH] Fix test Test can give false failure depending on site's contact display_name settings. --- tests/phpunit/api/v4/Action/ResultTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/api/v4/Action/ResultTest.php b/tests/phpunit/api/v4/Action/ResultTest.php index d9153c07d3..c46547b6fb 100644 --- a/tests/phpunit/api/v4/Action/ResultTest.php +++ b/tests/phpunit/api/v4/Action/ResultTest.php @@ -45,24 +45,24 @@ class ResultTest extends UnitTestCase { $original = 'hello < you'; $result = Contact::create(FALSE) - ->setValues(['display_name' => $original]) + ->setValues(['first_name' => $original]) ->execute()->first(); - $this->assertEquals($original, $result['display_name'], + $this->assertEquals($original, $result['first_name'], "The value returned from Contact.create is different to the value sent." ); $result = Contact::update(FALSE) ->addWhere('id', '=', $result['id']) - ->setValues(['display_name' => $original]) + ->setValues(['first_name' => $original]) ->execute()->first(); - $this->assertEquals($original, $result['display_name'], + $this->assertEquals($original, $result['first_name'], "The value returned from Contact.update is different to the value sent." ); $result = Contact::get(FALSE) ->addWhere('id', '=', $result['id']) ->execute()->first(); - $this->assertEquals($original, $result['display_name'], + $this->assertEquals($original, $result['first_name'], "The value returned from Contact.get is different to the value sent." ); } -- 2.25.1