summaryrefslogtreecommitdiffstats
path: root/extensions/Push
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-07-14 08:55:43 +0200
committerByron Jones <glob@mozilla.com>2015-07-14 08:55:43 +0200
commit2bd3296eaa42479b1dd0aa5c12a442a86140b02c (patch)
treeca34781c1e5dddefeef80837136129bd631f9584 /extensions/Push
parent425d780e7f77d8cc38191331cbcc84d7af5c871a (diff)
downloadbugzilla-2bd3296eaa42479b1dd0aa5c12a442a86140b02c.tar.gz
bugzilla-2bd3296eaa42479b1dd0aa5c12a442a86140b02c.tar.xz
Bug 1180570 - store attachment size in the database
Diffstat (limited to 'extensions/Push')
-rw-r--r--extensions/Push/t/ReviewBoard.t20
1 files changed, 11 insertions, 9 deletions
diff --git a/extensions/Push/t/ReviewBoard.t b/extensions/Push/t/ReviewBoard.t
index f2a508f59..3eb54760c 100644
--- a/extensions/Push/t/ReviewBoard.t
+++ b/extensions/Push/t/ReviewBoard.t
@@ -95,15 +95,17 @@ my $dbh = Bugzilla->dbh;
$dbh->bz_start_transaction;
my $timestamp = $dbh->selectrow_array('SELECT LOCALTIMESTAMP(0)');
my $bug = Bugzilla::Bug->new({id => 9000});
-my $attachment = Bugzilla::Attachment->create(
- { bug => $bug,
- creation_ts => $timestamp,
- data => $data,
- filesize => length $data,
- description => "rblink.txt",
- filename => "rblink.txt",
- isprivate => 1, ispatch => 0,
- mimetype => 'text/x-review-board-request'});
+my $attachment = Bugzilla::Attachment->create({
+ bug => $bug,
+ creation_ts => $timestamp,
+ data => $data,
+ attach_size => length($data),
+ description => "rblink.txt",
+ filename => "rblink.txt",
+ isprivate => 1,
+ ispatch => 0,
+ mimetype => 'text/x-review-board-request'
+});
diag "".$attachment->id;
$dbh->bz_commit_transaction;