From 4d2ec773b833b06fd6925502eb4ac512b1274b86 Mon Sep 17 00:00:00 2001 From: Marius Ursache Date: Fri, 26 Feb 2016 22:45:29 +1100 Subject: Fixed testCopyTableFromTo_NoPermissions test Fixing testCopyTableFromTo_NoPermissions not using the mockConnection. --- UnitTests/SPTableCopyTest.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'UnitTests') diff --git a/UnitTests/SPTableCopyTest.m b/UnitTests/SPTableCopyTest.m index 20801786..563322df 100644 --- a/UnitTests/SPTableCopyTest.m +++ b/UnitTests/SPTableCopyTest.m @@ -88,8 +88,9 @@ { SPTableCopy *tableCopy = [[SPTableCopy alloc] init]; + [tableCopy setConnection:mockConnection]; - XCTAssertFalse([tableCopy copyTable:@"table_name" from:@"source_db" to:@"target_db"],@"copy operation must fail."); + XCTAssertFalse([tableCopy copyTable:@"table_name" from:@"source_db" to:@"target_db"], @"copy operation must fail."); [tableCopy release]; } -- cgit v1.2.3