Use new checkPermissions shorthand in api calls
[civicrm-core.git] / tests / phpunit / api / v4 / Action / ContactChecksumTest.php
index b3e91ef7c35f05ac77bf5ed1b939fbe7da135bcd..51edd672d8398797fd31c4b1b792c85af70b664f 100644 (file)
@@ -29,8 +29,7 @@ use Civi\Api4\Contact;
 class ContactChecksumTest extends \api\v4\UnitTestCase {
 
   public function testGetChecksum() {
-    $contact = Contact::create()
-      ->setCheckPermissions(FALSE)
+    $contact = Contact::create(FALSE)
       ->addValue('first_name', 'Check')
       ->addValue('last_name', 'Sum')
       ->addChain('cs', Contact::getChecksum()->setContactId('$id')->setTtl(500), 0)
@@ -47,8 +46,7 @@ class ContactChecksumTest extends \api\v4\UnitTestCase {
   }
 
   public function testValidateChecksum() {
-    $cid = Contact::create()
-      ->setCheckPermissions(FALSE)
+    $cid = Contact::create(FALSE)
       ->addValue('first_name', 'Checker')
       ->addValue('last_name', 'Sum')
       ->execute()