Commit Graph
17 Commits
Author SHA1 Message Date
Alexis SaettlerandGitHub 304762c52b Fix update command (#1317) 2018-05-12 18:16:57 +02:00
Tom RochetteandRégis Freyd d2c9c75644 Fix tests to prepare for foreign keys (#1289)
* Fix AccountTest tests.
Update the model factories not to expect a constant value for account_id.
Add various missing relationships in the model factories.

* Fix AddressTest after the addition of foreign keys.

* Fix ContactTest after the addition of foreign keys.
Set contact/account before saving a special date using Contact::setSpecialDate or Contact::setSpecialDateFromAge.

* Fix DayTest after the addition of foreign keys.

* Fix EntryTest after the addition of foreign keys.

* Fix GiftTest after the addition of foreign keys.

* Fix JournalEntryTest after the addition of foreign keys.

* Fix NoteTest after the addition of foreign keys.

* Fix NotificationTest after the addition of foreign keys.

* Fix PetTest after the addition of foreign keys.

* Return the account id and not the account object in many model factories definition.

* Fix ReminderTest after the addition of foreign keys.

* Fix SpecialDateTest after the addition of foreign keys.

* Fix UserTest after the addition of foreign keys.

* Make instead of creating in Contact::logEvent() as we cannot create an event without giving it an account_id.

* Fix ActivityTest after the addition of foreign keys.

* Fix SendNotificationsTest after the addition of foreign keys.

* Fix SendNotificationsTest after the addition of foreign keys.
- Remove the test_it_deletes_the_notification_if_contact_does_not_exist test because on deletion of a contact, all his associated notifications will be deleted due to cascade constraints.

* Fix SendRemindersTest after the addition of foreign keys.
- Remove the test_it_deletes_the_reminder_if_contact_doesnt_exist test because on deletion of a contact, all his associated reminders will be deleted due to cascade constraints.

* Fix TagTest after the addition of foreign keys.

* Update the logic in Contact::removeSpecialDate so that a foreign key constraint is not triggered when removing the associated relation.
Set a the partner gender before saving the partner as the gender is mandatory.
Add the ConvertEmptyStringsToNull middleware.
Set the metThroughId default option as empty so it is converted to null by the ConvertEmptyStringsToNull middleware.
Set the activity_type_id as empty so it is converted to null by the ConvertEmptyStringsToNull middleware.
Mark the Reminder title has required.
2018-05-08 21:33:12 -04:00
Matthew BrownandAlexis Saettler da73a6e15d Add Psalm to check for possibly fatal issues (#973) 2018-04-29 19:11:40 +02:00
Régis FreydandGitHub 8a13c8a6c9 Populate changelogs table on Account creation (#1176) 2018-04-14 23:44:17 -04:00
Régis FreydandGitHub ad2b75db75 Add changelog inside the application (#1172) 2018-04-14 19:52:52 -04:00
Régis FreydandGitHub 874a7f09fb Add ability to define which features you want active on the Contact sheet (#1121) 2018-04-09 09:07:52 -04:00
Régis FreydandGitHub ae521f5226 Refactor relationships (#971) 2018-04-01 20:46:51 -04:00
Régis FreydandGitHub 9d883ecba6 Add yearly statistics to activities and calls object (#1049) 2018-03-25 12:26:11 -04:00
Régis FreydandGitHub e96b70f95c Add concept of notifications for reminders (#894) 2018-02-25 17:42:14 -05:00
Alexis SaettlerandGitHub 8d6daa5051 Launch browser tests with Dusk (#892)
* And remove old (steward) tests
2018-02-12 22:53:50 +01:00
Régis FreydandGitHub d004791b11 Refactor destroyAndReplace method to facilitate unit testing (#880) 2018-02-04 16:39:56 -05:00
Régis FreydandGitHub e78e140b9e Add support for custom genders (#879) 2018-02-04 15:44:26 -05:00
Régis FreydandGitHub cc754ca35d Add Annual plan (#861) 2018-01-28 13:22:55 -05:00
Régis FreydandGitHub 4fc47f605b Add more unit tests for Account model (#833) 2018-01-19 10:19:55 -05:00
Régis FreydandGitHub d8bed11785 Add ability to add dates without a year (#677) 2017-12-13 15:38:05 -05:00
Tobias FröbergandRégis Freyd 6ef07ee355 Use the config helper instead of putenv in the test suit (#608)
We've used putenv() to set environment variables in tests forcing us
to reload the environment. We don't have to if we use the config
helper in Laravel instead.
2017-10-12 17:39:51 -04:00
Régis FreydandGitHub a3af477ebe Add new account limit for free accounts (#561) 2017-08-28 21:41:44 -04:00