protected function tearDown() { // /*delete all productOrders*/ ProductOrders::model()->deleteAll(); /*delete all products*/ Product::model()->deleteAll(); /*delete all orders*/ Orders::model()->deleteAll(); parent::tearDown(); }
public function tearDown() { /*delete all productOrders*/ ProductOrders::model()->deleteAll(); /*delete all products*/ Product::model()->deleteAll(); /*delete all orders*/ Orders::model()->deleteAll(); /*delete all customers*/ Customer::model()->deleteAll(); }