aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/bromley.t3
-rw-r--r--t/cobrand/closest.t1
-rw-r--r--t/cobrand/fixamingata.t1
-rw-r--r--t/cobrand/form_extras.t1
-rw-r--r--t/cobrand/get_body_sender.t5
-rw-r--r--t/cobrand/loading.t4
-rw-r--r--t/cobrand/oxfordshire.t4
-rw-r--r--t/cobrand/restriction.t1
-rw-r--r--t/cobrand/two_tier.t6
-rw-r--r--t/cobrand/zurich.t6
10 files changed, 3 insertions, 29 deletions
diff --git a/t/cobrand/bromley.t b/t/cobrand/bromley.t
index ad0ef7b14..46c2472cd 100644
--- a/t/cobrand/bromley.t
+++ b/t/cobrand/bromley.t
@@ -128,7 +128,4 @@ for my $test (
};
}
-# Clean up
-$mech->delete_user($user);
-$mech->delete_body($body);
done_testing();
diff --git a/t/cobrand/closest.t b/t/cobrand/closest.t
index a7d09842b..088349f39 100644
--- a/t/cobrand/closest.t
+++ b/t/cobrand/closest.t
@@ -78,6 +78,5 @@ FixMyStreet::override_config {
};
END {
- $mech->delete_user( $user );
done_testing();
}
diff --git a/t/cobrand/fixamingata.t b/t/cobrand/fixamingata.t
index 1ae637229..1e6bd7e65 100644
--- a/t/cobrand/fixamingata.t
+++ b/t/cobrand/fixamingata.t
@@ -107,7 +107,6 @@ subtest "Test ajax decimal points" => sub {
};
END {
- $mech->delete_body($body);
ok $mech->host("www.fixmystreet.com"), "change host back";
done_testing();
}
diff --git a/t/cobrand/form_extras.t b/t/cobrand/form_extras.t
index e0727018f..f450d908e 100644
--- a/t/cobrand/form_extras.t
+++ b/t/cobrand/form_extras.t
@@ -63,6 +63,5 @@ FixMyStreet::override_config {
};
END {
- $mech->delete_problems_for_body(undef);
done_testing();
}
diff --git a/t/cobrand/get_body_sender.t b/t/cobrand/get_body_sender.t
index b71dece7e..a53472128 100644
--- a/t/cobrand/get_body_sender.t
+++ b/t/cobrand/get_body_sender.t
@@ -1,7 +1,4 @@
-use strict;
-use warnings;
-
-use Test::More;
+use FixMyStreet::Test;
use mySociety::Locale;
use FixMyStreet::DB;
diff --git a/t/cobrand/loading.t b/t/cobrand/loading.t
index b4738fb63..16c7b4ab7 100644
--- a/t/cobrand/loading.t
+++ b/t/cobrand/loading.t
@@ -1,7 +1,5 @@
-use strict;
-use warnings;
+use FixMyStreet::Test;
-use Test::More;
use Sub::Override;
use FixMyStreet;
diff --git a/t/cobrand/oxfordshire.t b/t/cobrand/oxfordshire.t
index 7a7d85412..5452a0fde 100644
--- a/t/cobrand/oxfordshire.t
+++ b/t/cobrand/oxfordshire.t
@@ -109,10 +109,6 @@ EOF
}
};
-# Clean up
END {
- $mech->delete_user( $superuser );
- $mech->delete_user( $inspector );
- $mech->delete_problems_for_body( $oxon->id );
done_testing();
}
diff --git a/t/cobrand/restriction.t b/t/cobrand/restriction.t
index 4d15cdc48..9e3018625 100644
--- a/t/cobrand/restriction.t
+++ b/t/cobrand/restriction.t
@@ -50,5 +50,4 @@ is($cobrand->updates->count, 1, 'One update in the right cobrand');
my $nearby = $c->model('DB::Nearby')->nearby($c, 5, [], 10, 0.003, 0.004);
is(@$nearby, 1, 'One report close to the origin point');
-$mech->delete_problems_for_body(1234);
done_testing();
diff --git a/t/cobrand/two_tier.t b/t/cobrand/two_tier.t
index 6c6a36758..c8a16ea9a 100644
--- a/t/cobrand/two_tier.t
+++ b/t/cobrand/two_tier.t
@@ -1,8 +1,4 @@
-use strict;
-use warnings;
-use Test::More;
-
-use FixMyStreet;
+use FixMyStreet::Test;
use FixMyStreet::Cobrand;
my @cobrands = (
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t
index 947baaec8..be5dcbb48 100644
--- a/t/cobrand/zurich.t
+++ b/t/cobrand/zurich.t
@@ -978,12 +978,6 @@ FixMyStreet::override_config {
};
END {
- $mech->delete_body($subdivision);
- $mech->delete_body($division);
- $mech->delete_body($zurich);
- $mech->delete_body($external_body);
- $mech->delete_user( 'dm1@example.org' );
- $mech->delete_user( 'sdm1@example.org' );
ok $mech->host("www.fixmystreet.com"), "change host back";
done_testing();
}