Skip to content

Commit

Permalink
Add new fields to Company and Contact models
Browse files Browse the repository at this point in the history
  • Loading branch information
dotzero committed Oct 3, 2017
1 parent 98c5265 commit 8a15bdb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Models/Company.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ class Company extends AbstractModel
'date_create',
'last_modified',
'responsible_user_id',
'created_user_id',
'linked_leads_id',
'tags',
'modified_user_id',
];

/**
Expand Down
3 changes: 3 additions & 0 deletions src/Models/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ class Contact extends AbstractModel
'date_create',
'last_modified',
'responsible_user_id',
'created_user_id',
'linked_leads_id',
'company_name',
'linked_company_id',
'tags',
'notes',
'modified_user_id',
];

/**
Expand Down
2 changes: 2 additions & 0 deletions tests/Models/CompanyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,12 @@ public function fieldsProvider()
['date_create', '2016-04-01 00:00:00', strtotime('2016-04-01 00:00:00')],
['last_modified', '2016-04-01 00:00:00', strtotime('2016-04-01 00:00:00')],
['responsible_user_id', 100, 100],
['created_user_id', 100, 100],
['linked_leads_id', 100, [100]],
['linked_leads_id', [100, 200], [100, 200]],
['tags', 'Tag', 'Tag'],
['tags', ['Tag 1', 'Tag 2'], 'Tag 1,Tag 2'],
['modified_user_id', 100, 100],
];
}
}
3 changes: 3 additions & 0 deletions tests/Models/ContactTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,14 @@ public function fieldsProvider()
['date_create', '2016-04-01 00:00:00', strtotime('2016-04-01 00:00:00')],
['last_modified', '2016-04-01 00:00:00', strtotime('2016-04-01 00:00:00')],
['responsible_user_id', 100, 100],
['created_user_id', 100, 100],
['linked_leads_id', 100, [100]],
['linked_leads_id', [100, 200], [100, 200]],
['company_name', 'Компания', 'Компания'],
['linked_company_id', 100, 100],
['tags', 'Tag', 'Tag'],
['tags', ['Tag 1', 'Tag 2'], 'Tag 1,Tag 2'],
['modified_user_id', 100, 100],
];
}
}

0 comments on commit 8a15bdb

Please sign in to comment.