From 263c1e500f78df364b8c88a19619194158f74040 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 24 May 2017 14:10:29 +0200 Subject: [PATCH] Bug 18226: [QA Follow-up] Remove further assumptions on branch count See also follow-up on bug 18286. Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- t/db_dependent/01-test_dbic.t | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/t/db_dependent/01-test_dbic.t b/t/db_dependent/01-test_dbic.t index c3d972797c..0312120d0e 100644 --- a/t/db_dependent/01-test_dbic.t +++ b/t/db_dependent/01-test_dbic.t @@ -38,8 +38,7 @@ subtest "Scenario: Show how caching prevents Test::DBIx::Class from working prop ok(1, 'Step: Given Test::DBIx::Class (T:D:C) is loaded and DB accessor is mocked. Connection from cache is still used.'); - ok($libCount = Koha::Libraries->search->count, - ' When the libraries are counted'); + $libCount = Koha::Libraries->search->count; is($libCount, $firstLibCount, ' Then we got the same count as without T:D:C'); @@ -55,8 +54,7 @@ subtest "Scenario: Show how caching prevents Test::DBIx::Class from working prop ok(Koha::Database::flush_schema_cache(), 'Step: Given the DB connection cache is flushed'); - ok(! ($libCount = Koha::Libraries->search->count), - ' When the libraries are counted'); + $libCount = Koha::Libraries->search->count; is($libCount, 0, ' Then we got 0 libraries because fixtures are not deployed'); @@ -77,8 +75,7 @@ subtest "Scenario: Show how caching prevents Test::DBIx::Class from working prop ], 'Step: Given we deploy T:D:C Fixtures'); - ok($libCount = Koha::Libraries->search->count, - ' When the libraries are counted'); + $libCount = Koha::Libraries->search->count; is($libCount, 1, ' Then we got the count from fixtures'); -- 2.11.0