Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shopify_iossdk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
shopify_iossdk
Commits
d3a0111d
Commit
d3a0111d
authored
May 27, 2016
by
Gabriel O'Flaherty-Chan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build errors
parent
9d194783
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
BUYClientTest_Storefront.m
...e Buy SDK/Mobile Buy SDK Tests/BUYClientTest_Storefront.m
+3
-3
BUYLineItemTest.m
Mobile Buy SDK/Mobile Buy SDK Tests/BUYLineItemTest.m
+2
-2
No files found.
Mobile Buy SDK/Mobile Buy SDK Tests/BUYClientTest_Storefront.m
View file @
d3a0111d
...
@@ -181,7 +181,7 @@
...
@@ -181,7 +181,7 @@
XCTAssertNotNil
([
collections
.
firstObject
title
]);
XCTAssertNotNil
([
collections
.
firstObject
title
]);
XCTAssertNotNil
([
collections
.
firstObject
handle
]);
XCTAssertNotNil
([
collections
.
firstObject
handle
]);
XCTAssertNotNil
([
collections
.
firstObject
collectionId
]);
XCTAssertNotNil
([
collections
.
firstObject
identifier
]);
self
.
collection
=
collections
.
firstObject
;
self
.
collection
=
collections
.
firstObject
;
[
expectation
fulfill
];
[
expectation
fulfill
];
...
@@ -205,7 +205,7 @@
...
@@ -205,7 +205,7 @@
XCTAssertNotNil
([
collections
.
firstObject
title
]);
XCTAssertNotNil
([
collections
.
firstObject
title
]);
XCTAssertNotNil
([
collections
.
firstObject
handle
]);
XCTAssertNotNil
([
collections
.
firstObject
handle
]);
XCTAssertNotNil
([
collections
.
firstObject
collectionId
]);
XCTAssertNotNil
([
collections
.
firstObject
identifier
]);
[
expectation
fulfill
];
[
expectation
fulfill
];
}];
}];
...
@@ -246,7 +246,7 @@
...
@@ -246,7 +246,7 @@
XCTestExpectation
*
expectation
=
[
self
expectationWithDescription
:
NSStringFromSelector
(
_cmd
)];
XCTestExpectation
*
expectation
=
[
self
expectationWithDescription
:
NSStringFromSelector
(
_cmd
)];
[
self
.
client
getProductsPage
:
1
inCollection
:
self
.
collection
.
collectionId
completion
:^
(
NSArray
*
products
,
NSUInteger
page
,
BOOL
reachedEnd
,
NSError
*
error
)
{
[
self
.
client
getProductsPage
:
1
inCollection
:
self
.
collection
.
identifier
completion
:^
(
NSArray
*
products
,
NSUInteger
page
,
BOOL
reachedEnd
,
NSError
*
error
)
{
XCTAssertNil
(
error
);
XCTAssertNil
(
error
);
XCTAssertNotNil
(
products
);
XCTAssertNotNil
(
products
);
...
...
Mobile Buy SDK/Mobile Buy SDK Tests/BUYLineItemTest.m
View file @
d3a0111d
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
_modelManager
=
[
BUYModelManager
modelManager
];
_modelManager
=
[
BUYModelManager
modelManager
];
_variant
=
[[
BUYProductVariant
alloc
]
initWithModelManager
:
_modelManager
JSONDictionary
:@{
@"id"
:
@1
,
@"requires_shipping"
:
@YES
}];
_variant
=
[[
BUYProductVariant
alloc
]
initWithModelManager
:
_modelManager
JSONDictionary
:@{
@"id"
:
@1
,
@"requires_shipping"
:
@YES
}];
_lineItem
=
[
[
BUYLineItem
alloc
]
init
WithVariant
:
_variant
];
_lineItem
=
[
_modelManager
lineItem
WithVariant
:
_variant
];
}
}
-
(
void
)
tearDown
-
(
void
)
tearDown
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
-
(
void
)
testJsonDictionaryShouldShowAllProperties
-
(
void
)
testJsonDictionaryShouldShowAllProperties
{
{
BUYProductVariant
*
variant
=
[[
BUYProductVariant
alloc
]
initWithModelManager
:
_modelManager
JSONDictionary
:@{
@"id"
:
@5
}];
BUYProductVariant
*
variant
=
[[
BUYProductVariant
alloc
]
initWithModelManager
:
_modelManager
JSONDictionary
:@{
@"id"
:
@5
}];
_lineItem
=
[
[
BUYLineItem
alloc
]
init
WithVariant
:
variant
];
_lineItem
=
[
_modelManager
lineItem
WithVariant
:
variant
];
_lineItem
.
quantity
=
[
NSDecimalNumber
decimalNumberWithString
:
@"3"
];
_lineItem
.
quantity
=
[
NSDecimalNumber
decimalNumberWithString
:
@"3"
];
_lineItem
.
price
=
[
NSDecimalNumber
decimalNumberWithString
:
@"5.55"
];
_lineItem
.
price
=
[
NSDecimalNumber
decimalNumberWithString
:
@"5.55"
];
_lineItem
.
title
=
@"banana"
;
_lineItem
.
title
=
@"banana"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment