0
0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2024-12-22 20:38:31 +00:00
salesagility_SuiteCRM/tests/_support/Step/Acceptance/Accounts.php
2023-07-18 15:53:47 +01:00

32 lines
624 B
PHP

<?php
namespace Step\Acceptance;
#[\AllowDynamicProperties]
class Accounts extends \AcceptanceTester
{
/**
* Create an account
*
* @param string $name
* @return string Account ID
*/
public function createAccount($name)
{
global $db;
$id = create_guid();
$accountType = 'Customer';
$query = "INSERT INTO accounts (id, name, account_type, date_entered) VALUES ('?', '?', '?', '?')";
$db->pQuery($query, array(
$id,
$name,
$accountType,
date('Y-m-d H:i:s')
));
return $id;
}
}