Beispiel #1
0
 protected static function createDealWithDecimalValue(array $attributes = [])
 {
     $deal = ['currency' => "EUR", 'dropbox_email' => "*****@*****.**", 'hot' => true, 'name' => 'Website Redesign with decimal value' . rand(), 'tags' => ["important"], 'value' => "11.12", 'contact_id' => self::createContact()['id']];
     $originalClient = self::$client;
     self::$client = "";
     #$this->getMock('\BaseCRM\Client');
     $deal = self::$client->deals->create(array_merge($deal, $attributes));
     return $deal;
 }
Beispiel #2
0
 public static function setUpBeforeClass()
 {
     self::$accessToken = self::getAccessToken();
     self::$client = new Client(['accessToken' => self::$accessToken, 'userAgent' => "BaseCRM/v2 PHP/" . Configuration::VERSION . '+tests', 'verbose' => true]);
     self::$account = self::$client->accounts->self();
     self::$associatedContact = self::createAssociatedContact();
     self::$contact = self::createContact();
     self::$deal = self::createDeal();
     self::$lead = self::createLead();
     self::$lossReason = self::createLossReason();
     self::$note = self::createNote();
     self::$source = self::createSource();
     self::$tag = self::createTag();
     self::$task = self::createTask();
     self::$user = self::$client->users->self();
 }