Unit tests for new methods in model subscriber

This commit is contained in:
Jonathan Labreuille
2016-01-22 11:28:26 +01:00
parent 5a5a777b7d
commit 8072b162d4
4 changed files with 43 additions and 8 deletions

View File

@@ -264,7 +264,7 @@ class Subscriber extends Model {
return $subscriber;
}
function getCustomFields() {
function withCustomFields() {
$custom_fields = CustomField::select('id')->findArray();
if(empty($custom_fields)) return $this;