Merge pull request #208 from mailpoet/listing_tests

Listings
This commit is contained in:
Marco
2015-11-10 10:39:53 +01:00
16 changed files with 176 additions and 94 deletions

View File

@@ -90,7 +90,7 @@ class Subscriber extends Model {
array(
'name' => 'all',
'label' => __('All'),
'count' => Subscriber::whereNull('deleted_at')->count()
'count' => Subscriber::getPublished()->count()
),
array(
'name' => 'subscribed',
@@ -110,7 +110,7 @@ class Subscriber extends Model {
array(
'name' => 'trash',
'label' => __('Trash'),
'count' => Subscriber::whereNotNull('deleted_at')->count()
'count' => Subscriber::getTrashed()->count()
)
);
}