APIv4 - Add shorthand for setCheckPermissions()
[civicrm-core.git] / tests / phpunit / api / v4 / Entity / ConformanceTest.php
index 7c42824ed9ff7df1edf26c4cf8be2a5068ca6b09..4e8db6d84a17f412a66f5be695cdb8799c987dc7 100644 (file)
@@ -231,13 +231,13 @@ class ConformanceTest extends UnitTestCase {
     $exceptionThrown = '';
     try {
       $entityClass::get()
-        ->setCheckPermissions('nada')
+        ->setDebug('not a bool')
         ->execute();
     }
     catch (\API_Exception $e) {
       $exceptionThrown = $e->getMessage();
     }
-    $this->assertContains('checkPermissions', $exceptionThrown);
+    $this->assertContains('debug', $exceptionThrown);
     $this->assertContains('type', $exceptionThrown);
   }