diff options
author | stuconnolly <stuart02@gmail.com> | 2012-05-04 14:59:19 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-05-04 14:59:19 +0000 |
commit | f5710a1bb906bd9c8220fba162ebf29fa986aaa5 (patch) | |
tree | 9a23295ec8f489864cce6eaa187b3e945832986c /UnitTests/SPDatabaseRenameTest.m | |
parent | e188d1d53a1b1f8cf96d8ce82221f2013e63c23b (diff) | |
download | sequelpro-f5710a1bb906bd9c8220fba162ebf29fa986aaa5.tar.gz sequelpro-f5710a1bb906bd9c8220fba162ebf29fa986aaa5.tar.bz2 sequelpro-f5710a1bb906bd9c8220fba162ebf29fa986aaa5.zip |
Tidy up database action tests.
Diffstat (limited to 'UnitTests/SPDatabaseRenameTest.m')
-rw-r--r-- | UnitTests/SPDatabaseRenameTest.m | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/UnitTests/SPDatabaseRenameTest.m b/UnitTests/SPDatabaseRenameTest.m index 335e9f34..c0956262 100644 --- a/UnitTests/SPDatabaseRenameTest.m +++ b/UnitTests/SPDatabaseRenameTest.m @@ -23,43 +23,28 @@ // // More info at <http://code.google.com/p/sequel-pro/> -#import <OCMock/OCMock.h> - #import "SPDatabaseRenameTest.h" #import "SPDatabaseRename.h" #import "SPTableCopy.h" -#import "MCPConnection.h" -#import "SPDatabaseInfo.h" #import "SPLogger.h" +#import <OCMock/OCMock.h> + @implementation SPDatabaseRenameTest - (SPDatabaseRename *)getDatabaseRenameFixture { - SPDatabaseRename *dbRename = [[SPDatabaseRename alloc] init]; - - return [dbRename autorelease]; + return [[[SPDatabaseRename alloc] init] autorelease]; } - (SPTableCopy *)getTableCopyFixture { - SPTableCopy *tableCopy = [[SPTableCopy alloc] init]; - - return [tableCopy autorelease]; + return [[[SPTableCopy alloc] init] autorelease]; } - (id)getMockConnection { - id mockConnection = [OCMockObject niceMockForClass:[MCPConnection class]]; - - return mockConnection; -} - -- (id)getMockDBInfo -{ - id mockDBInfo = [OCMockObject niceMockForClass:[SPDatabaseInfo class]]; - - return mockDBInfo; + return [OCMockObject niceMockForClass:[SPMySQLConnection class]]; } - (void)testRenameDatabase |