aboutsummaryrefslogtreecommitdiffstats
path: root/UnitTests
diff options
context:
space:
mode:
authorMarius Ursache <marius@marius.me.uk>2016-02-26 22:45:29 +1100
committerMarius Ursache <marius@marius.me.uk>2016-02-26 22:45:29 +1100
commit4d2ec773b833b06fd6925502eb4ac512b1274b86 (patch)
tree663b6dfc978ab27b4572907c82a7dee5721e7d95 /UnitTests
parentb88771821a3393a44c44e26225a8726943b4e99a (diff)
downloadsequelpro-4d2ec773b833b06fd6925502eb4ac512b1274b86.tar.gz
sequelpro-4d2ec773b833b06fd6925502eb4ac512b1274b86.tar.bz2
sequelpro-4d2ec773b833b06fd6925502eb4ac512b1274b86.zip
Fixed testCopyTableFromTo_NoPermissions test
Fixing testCopyTableFromTo_NoPermissions not using the mockConnection.
Diffstat (limited to 'UnitTests')
-rw-r--r--UnitTests/SPTableCopyTest.m3
1 files changed, 2 insertions, 1 deletions
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];
}