Skip to content

Commit d52bbda

Browse files
committed
Fixed test building
1 parent 92108d1 commit d52bbda

File tree

4 files changed

+46
-47
lines changed

4 files changed

+46
-47
lines changed

TOPasscodeViewControllerExample.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
22D3613A1EDCC1D7002E5D35 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 22D361321EDCC1D7002E5D35 /* ViewController.m */; };
3535
22D3613B1EDCC1D7002E5D35 /* wallpaper.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 22D361331EDCC1D7002E5D35 /* wallpaper.jpg */; };
3636
22D3613F1EDCC1EA002E5D35 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 22D3613D1EDCC1EA002E5D35 /* Info.plist */; };
37-
22D361401EDCC1EA002E5D35 /* TOPINViewControllerExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 22D3613E1EDCC1EA002E5D35 /* TOPINViewControllerExampleTests.m */; };
37+
22D361401EDCC1EA002E5D35 /* TOPasscodeViewControllerExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 22D3613E1EDCC1EA002E5D35 /* TOPasscodeViewControllerExampleTests.m */; };
3838
22D5C81A1EE9F99600745F9A /* TOPasscodeSettingsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 22D5C8191EE9F99600745F9A /* TOPasscodeSettingsViewController.m */; };
3939
22EAD9DA1EFA4CEF00D0C408 /* TOSettingsKeypadImage.m in Sources */ = {isa = PBXBuildFile; fileRef = 22EAD9D91EFA4CEF00D0C408 /* TOSettingsKeypadImage.m */; };
4040
/* End PBXBuildFile section */
@@ -98,7 +98,7 @@
9898
22D361321EDCC1D7002E5D35 /* ViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
9999
22D361331EDCC1D7002E5D35 /* wallpaper.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = wallpaper.jpg; sourceTree = "<group>"; };
100100
22D3613D1EDCC1EA002E5D35 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
101-
22D3613E1EDCC1EA002E5D35 /* TOPINViewControllerExampleTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TOPINViewControllerExampleTests.m; sourceTree = "<group>"; };
101+
22D3613E1EDCC1EA002E5D35 /* TOPasscodeViewControllerExampleTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TOPasscodeViewControllerExampleTests.m; sourceTree = "<group>"; };
102102
22D5C8181EE9F99600745F9A /* TOPasscodeSettingsViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TOPasscodeSettingsViewController.h; sourceTree = "<group>"; };
103103
22D5C8191EE9F99600745F9A /* TOPasscodeSettingsViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TOPasscodeSettingsViewController.m; sourceTree = "<group>"; };
104104
22EAD9D81EFA4CEF00D0C408 /* TOSettingsKeypadImage.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TOSettingsKeypadImage.h; sourceTree = "<group>"; };
@@ -251,7 +251,7 @@
251251
isa = PBXGroup;
252252
children = (
253253
22D3613D1EDCC1EA002E5D35 /* Info.plist */,
254-
22D3613E1EDCC1EA002E5D35 /* TOPINViewControllerExampleTests.m */,
254+
22D3613E1EDCC1EA002E5D35 /* TOPasscodeViewControllerExampleTests.m */,
255255
);
256256
path = TOPasscodeViewControllerExampleTests;
257257
sourceTree = "<group>";
@@ -429,7 +429,7 @@
429429
isa = PBXSourcesBuildPhase;
430430
buildActionMask = 2147483647;
431431
files = (
432-
22D361401EDCC1EA002E5D35 /* TOPINViewControllerExampleTests.m in Sources */,
432+
22D361401EDCC1EA002E5D35 /* TOPasscodeViewControllerExampleTests.m in Sources */,
433433
);
434434
runOnlyForDeploymentPostprocessing = 0;
435435
};
@@ -600,9 +600,9 @@
600600
DEVELOPMENT_TEAM = 6LF3GMKZAB;
601601
INFOPLIST_FILE = TOPasscodeViewControllerExampleTests/Info.plist;
602602
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
603-
PRODUCT_BUNDLE_IDENTIFIER = co.timoliver.TOPINViewControllerExampleTests;
603+
PRODUCT_BUNDLE_IDENTIFIER = co.timoliver.TOPasscodeViewControllerExampleTests;
604604
PRODUCT_NAME = "$(TARGET_NAME)";
605-
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TOPINViewControllerExample.app/TOPINViewControllerExample";
605+
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TOPasscodeViewControllerExample.app/TOPasscodeViewControllerExample";
606606
};
607607
name = Debug;
608608
};
@@ -613,9 +613,9 @@
613613
DEVELOPMENT_TEAM = 6LF3GMKZAB;
614614
INFOPLIST_FILE = TOPasscodeViewControllerExampleTests/Info.plist;
615615
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
616-
PRODUCT_BUNDLE_IDENTIFIER = co.timoliver.TOPINViewControllerExampleTests;
616+
PRODUCT_BUNDLE_IDENTIFIER = co.timoliver.TOPasscodeViewControllerExampleTests;
617617
PRODUCT_NAME = "$(TARGET_NAME)";
618-
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TOPINViewControllerExample.app/TOPINViewControllerExample";
618+
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TOPasscodeViewControllerExample.app/TOPasscodeViewControllerExample";
619619
};
620620
name = Release;
621621
};

TOPasscodeViewControllerExample.xcodeproj/xcshareddata/xcschemes/TOPasscodeViewControllerExampleTests.xcscheme

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
buildConfiguration = "Debug"
1111
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
1212
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
13+
language = ""
1314
shouldUseLaunchSchemeArgsEnv = "YES">
1415
<Testables>
1516
<TestableReference
@@ -30,6 +31,7 @@
3031
buildConfiguration = "Debug"
3132
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
3233
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
34+
language = ""
3335
launchStyle = "0"
3436
useCustomWorkingDirectory = "NO"
3537
ignoresPersistentStateOnLaunch = "NO"

TOPasscodeViewControllerExampleTests/TOPINViewControllerExampleTests.m

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
//
2+
// TOPINViewControllerExampleTests.m
3+
// TOPINViewControllerExampleTests
4+
//
5+
// Created by Tim Oliver on 5/15/17.
6+
// Copyright © 2017 Timothy Oliver. All rights reserved.
7+
//
8+
9+
#import <XCTest/XCTest.h>
10+
#import "TOPasscodeViewController.h"
11+
12+
@interface TOPasscodeViewControllerExampleTests : XCTestCase
13+
14+
@end
15+
16+
@implementation TOPasscodeViewControllerExampleTests
17+
18+
- (void)setUp {
19+
[super setUp];
20+
// Put setup code here. This method is called before the invocation of each test method in the class.
21+
}
22+
23+
- (void)tearDown {
24+
// Put teardown code here. This method is called after the invocation of each test method in the class.
25+
[super tearDown];
26+
}
27+
28+
- (void)testPresentingViewController
29+
{
30+
UIViewController *parentViewController = [[UIViewController alloc] init];
31+
TOPasscodeViewController *controller = [[TOPasscodeViewController alloc] initWithStyle:TOPasscodeViewStyleTranslucentDark passcodeType:TOPasscodeTypeFourDigits];
32+
[parentViewController presentViewController:controller animated:NO completion:nil];
33+
XCTAssertNotNil(controller);
34+
}
35+
36+
@end

0 commit comments

Comments
 (0)