Listing & Form & Refactoring
- finished implementing forms - fixed form reset when clicking on new - fixed responsive for select all checkbox and toggle item details - refactored listing items' actions - added Trash action - cleaned up validations on models - fixed syntax - fixed tests
This commit is contained in:
@@ -6,7 +6,6 @@ use MailPoet\Models\SubscriberSegment;
|
||||
class SubscriberCest {
|
||||
|
||||
function _before() {
|
||||
$this->before_time = time();
|
||||
$this->data = array(
|
||||
'first_name' => 'John',
|
||||
'last_name' => 'Mailer',
|
||||
@@ -143,11 +142,11 @@ class SubscriberCest {
|
||||
}
|
||||
|
||||
function _after() {
|
||||
ORM::for_table(Subscriber::$_table)
|
||||
->delete_many();
|
||||
ORM::for_table(Segment::$_table)
|
||||
->delete_many();
|
||||
ORM::for_table(SubscriberSegment::$_table)
|
||||
->delete_many();
|
||||
ORM::forTable(Subscriber::$_table)
|
||||
->deleteMany();
|
||||
ORM::forTable(Segment::$_table)
|
||||
->deleteMany();
|
||||
ORM::forTable(SubscriberSegment::$_table)
|
||||
->deleteMany();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user