namespace api\v4\Entity;
use Civi\Api4\Entity;
-use api\v4\Traits\TableDropperTrait;
use api\v4\UnitTestCase;
/**
*/
class ConformanceTest extends UnitTestCase {
- use TableDropperTrait;
+ use \api\v4\Traits\TableDropperTrait;
use \api\v4\Traits\OptionCleanupTrait {
setUp as setUpOptionCleanup;
}
// Go no further if it's not a CRUD entity
if (array_diff(['get', 'create', 'update', 'delete'], array_keys($actions))) {
- $this->markTestSkipped("The entity \"$entity\" does not ");
- return;
+ $this->markTestSkipped("The API \"$entity\" does not implement CRUD actions");
}
$this->checkFields($entityClass, $entity);
}
/**
- * @param string $entityClass
+ * @param \Civi\Api4\Generic\AbstractEntity|string $entityClass
*
* @return array
*/