From d504d179568d942cbf893dc56f7b9ce13da79c07 Mon Sep 17 00:00:00 2001 From: Jonathan Labreuille Date: Wed, 21 Oct 2015 14:52:53 +0200 Subject: [PATCH] fixed errors --- tests/unit/Listing/ListingCest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/Listing/ListingCest.php b/tests/unit/Listing/ListingCest.php index c1213de1e5..6938ae086f 100644 --- a/tests/unit/Listing/ListingCest.php +++ b/tests/unit/Listing/ListingCest.php @@ -9,7 +9,7 @@ class ListingCest { function itShouldReturnListingData() { $listing = new Listing\Handler( - \Model::factory('\MailPoet\Models\Subscriber'), + '\MailPoet\Models\Subscriber', array() ); @@ -27,7 +27,7 @@ class ListingCest { $I->generateSubscribers(30, array('status' => 'subscribed')); $listing = new Listing\Handler( - \Model::factory('\MailPoet\Models\Subscriber'), + '\MailPoet\Models\Subscriber', array('group' => 'subscribed') ); $result = $listing->get(); @@ -42,7 +42,7 @@ class ListingCest { )); $listing = new Listing\Handler( - \Model::factory('\MailPoet\Models\Subscriber'), + '\MailPoet\Models\Subscriber', array( 'search' => 'j.d' )