mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-01 09:19:09 -04:00
Save and Restore the $_POST variable in tests that manipulate it so
other tests don't fail unexpectedly
This commit is contained in:
@@ -18,8 +18,12 @@
|
||||
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
class Albums_Controller_Test extends Unit_Test_Case {
|
||||
public function setup() {
|
||||
$this->_post = $_POST;
|
||||
}
|
||||
|
||||
public function teardown() {
|
||||
unset($_POST);
|
||||
$_POST = $this->_post;
|
||||
}
|
||||
|
||||
public function change_album_test() {
|
||||
|
||||
Reference in New Issue
Block a user