Unit tests for listing specific methods
- small fixes/optimization in Subscriber model - added test for search and group in Subscriber - added test for search in Newsletter
This commit is contained in:
@@ -19,6 +19,11 @@ class NewsletterCest {
|
||||
expect($this->saved)->equals(true);
|
||||
}
|
||||
|
||||
function itHasASearchFilter() {
|
||||
$newsletter = Newsletter::filter('search', 'first')->findOne();
|
||||
expect($newsletter->subject)->equals($this->data['subject']);
|
||||
}
|
||||
|
||||
function _after() {
|
||||
ORM::for_table(Newsletter::$_table)
|
||||
->delete_many();
|
||||
|
Reference in New Issue
Block a user