summaryrefslogtreecommitdiff
path: root/core/tests/Photos_Controller_Test.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-05-11 14:31:07 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-05-11 14:31:07 +0000
commit784b3aa34aa3d42b6a56cae3385dce63dfe0e034 (patch)
treeca0a589df2c54664f89c7e207823d20a474296a5 /core/tests/Photos_Controller_Test.php
parent8b33371e99247735876feebcc48ea5250c1af85e (diff)
Save and Restore the $_POST variable in tests that manipulate it so
other tests don't fail unexpectedly
Diffstat (limited to 'core/tests/Photos_Controller_Test.php')
-rw-r--r--core/tests/Photos_Controller_Test.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/tests/Photos_Controller_Test.php b/core/tests/Photos_Controller_Test.php
index 2b28f774..b40a9677 100644
--- a/core/tests/Photos_Controller_Test.php
+++ b/core/tests/Photos_Controller_Test.php
@@ -18,8 +18,12 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class Photos_Controller_Test extends Unit_Test_Case {
+ public function setup() {
+ $this->_post = $_POST;
+ }
+
public function teardown() {
- unset($_POST);
+ $_POST = $this->_post;
}
public function change_photo_test() {