[Bps-public-commit] rt-extension-assetsql branch, master, updated. 22f38cf1ca7a6c7f725d1a9a8403ade2f81d2db5
Shawn Moore
shawn at bestpractical.com
Thu Jun 16 17:31:59 EDT 2016
The branch, master has been updated
via 22f38cf1ca7a6c7f725d1a9a8403ade2f81d2db5 (commit)
from 02bebe3aea62c463e81a8d9681110faaeac1edad (commit)
Summary of changes:
xt/basics.t | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit 22f38cf1ca7a6c7f725d1a9a8403ade2f81d2db5
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Thu Jun 16 21:34:11 2016 +0000
Set up $asset_id for easier interpolation
diff --git a/xt/basics.t b/xt/basics.t
index 04a8f84..7c92e16 100644
--- a/xt/basics.t
+++ b/xt/basics.t
@@ -90,6 +90,13 @@ my $ticket = RT::Ticket->new(RT->SystemUser);
($ok, $msg) = $morelax->AddLink(Type => 'RefersTo', Target => $ticket->URI);
ok($ok, $msg);
+my $bloc_id = $bloc->id;
+my $ecaz_id = $ecaz->id;
+my $kaitain_id = $kaitain->id;
+my $morelax_id = $morelax->id;
+my $stilgar_id = $stilgar->id;
+my $ticket_id = $ticket->id;
+
sub assetsql {
local $Test::Builder::Level = $Test::Builder::Level + 1;
@@ -162,10 +169,10 @@ assetsql "Lifecycle != 'default'" => $bloc, $ecaz, $kaitain, $morelax, $stilgar;
assetsql "Linked IS NOT NULL" => $ecaz, $kaitain, $morelax, $stilgar;
assetsql "Linked IS NULL" => $bloc;
-assetsql "RefersTo = 'asset:" . $kaitain->id . "'" => $ecaz;
-assetsql "RefersTo = " . $ticket->Id => $morelax;
-assetsql "HasMember = 'asset:" . $stilgar->id . "'" => $ecaz;
-assetsql "MemberOf = 'asset:" . $stilgar->id . "'" => ();
+assetsql "RefersTo = 'asset:$kaitain_id'" => $ecaz;
+assetsql "RefersTo = $ticket_id" => $morelax;
+assetsql "HasMember = 'asset:$stilgar_id'" => $ecaz;
+assetsql "MemberOf = 'asset:$stilgar_id'" => ();
assetsql "Owner.Name = 'shawn'" => $bloc, $ecaz, $kaitain, $stilgar;
assetsql "Owner.EmailAddress LIKE 'bestpractical'" => $bloc, $ecaz, $kaitain, $stilgar;
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list