/** * @expectedException NotSupportedException * @depends testSetAndGetMailbox */ public function testTryDeletingTheNotificationsBox() { $super = User::getByUsername('super'); Yii::app()->user->userModel = $super; $box = EmailBox::getByName(EmailBox::NOTIFICATIONS_NAME); $box->delete(); }