Skip to content

Commit 0ac1c03

Browse files
committed
Rename cell
Fix a typo
1 parent 8102f55 commit 0ac1c03

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

WooCommerce/Classes/ViewRelated/Orders/OrderStatusListViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ final class OrderStatusListViewController: UIViewController {
6464
/// Registers all of the available TableViewCells
6565
///
6666
private func registerTableViewCells() {
67-
let cells = [CheckmarkOnSelectionTableViewCell.self]
67+
let cells = [StatusListTableViewCell.self]
6868

6969
for cell in cells {
7070
tableView.register(cell.loadNib(), forCellReuseIdentifier: cell.reuseIdentifier)
@@ -200,7 +200,7 @@ extension OrderStatusListViewController: UITableViewDataSource {
200200
}
201201

202202
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
203-
guard let cell = tableView.dequeueReusableCell(withIdentifier: CheckmarkOnSelectionTableViewCell.reuseIdentifier, for: indexPath) as? CheckmarkOnSelectionTableViewCell else {
203+
guard let cell = tableView.dequeueReusableCell(withIdentifier: StatusListTableViewCell.reuseIdentifier, for: indexPath) as? StatusListTableViewCell else {
204204
fatalError()
205205
}
206206

WooCommerce/Classes/ViewRelated/ReusableViews/CheckmarkOnSelectionTableViewCell.swift renamed to WooCommerce/Classes/ViewRelated/ReusableViews/StatusListTableViewCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import UIKit
22

3-
final class CheckmarkOnSelectionTableViewCell: UITableViewCell {
3+
final class StatusListTableViewCell: UITableViewCell {
44
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
55
super.init(style: style, reuseIdentifier: reuseIdentifier)
66
commonInit()

WooCommerce/Classes/ViewRelated/ReusableViews/CheckmarkOnSelectionTableViewCell.xib renamed to WooCommerce/Classes/ViewRelated/ReusableViews/StatusListTableViewCell.xib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<objects>
1313
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
1414
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
15-
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="CheckmarkOnSelectionTableViewCell" customModule="WooCommerce" customModuleProvider="target">
15+
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="StatusListTableViewCell" customModule="WooCommerce" customModuleProvider="target">
1616
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
1717
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
1818
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">

WooCommerce/WooCommerce.xcodeproj/project.pbxproj

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@
290290
D8023EE3221547D400D2DC30 /* FancyAlertViewController+SwitchStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8023EE2221547D400D2DC30 /* FancyAlertViewController+SwitchStore.swift */; };
291291
D81D9228222E7F0800FFA585 /* OrderStatusListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D81D9226222E7F0800FFA585 /* OrderStatusListViewController.swift */; };
292292
D81D9229222E7F0800FFA585 /* OrderStatusListViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = D81D9227222E7F0800FFA585 /* OrderStatusListViewController.xib */; };
293-
D85B8333222FABD1002168F3 /* CheckmarkOnSelectionTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = D85B8331222FABD1002168F3 /* CheckmarkOnSelectionTableViewCell.swift */; };
294-
D85B8334222FABD1002168F3 /* CheckmarkOnSelectionTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = D85B8332222FABD1002168F3 /* CheckmarkOnSelectionTableViewCell.xib */; };
295-
D85B8336222FCDA1002168F3 /* CheckmarkOnSelectionTableViewCellTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D85B8335222FCDA1002168F3 /* CheckmarkOnSelectionTableViewCellTests.swift */; };
293+
D85B8333222FABD1002168F3 /* StatusListTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = D85B8331222FABD1002168F3 /* StatusListTableViewCell.swift */; };
294+
D85B8334222FABD1002168F3 /* StatusListTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = D85B8332222FABD1002168F3 /* StatusListTableViewCell.xib */; };
295+
D85B8336222FCDA1002168F3 /* StatusListTableViewCellTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D85B8335222FCDA1002168F3 /* StatusListTableViewCellTests.swift */; };
296296
/* End PBXBuildFile section */
297297

298298
/* Begin PBXContainerItemProxy section */
@@ -629,9 +629,9 @@
629629
D8023EE2221547D400D2DC30 /* FancyAlertViewController+SwitchStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "FancyAlertViewController+SwitchStore.swift"; sourceTree = "<group>"; };
630630
D81D9226222E7F0800FFA585 /* OrderStatusListViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OrderStatusListViewController.swift; sourceTree = "<group>"; };
631631
D81D9227222E7F0800FFA585 /* OrderStatusListViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = OrderStatusListViewController.xib; sourceTree = "<group>"; };
632-
D85B8331222FABD1002168F3 /* CheckmarkOnSelectionTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CheckmarkOnSelectionTableViewCell.swift; sourceTree = "<group>"; };
633-
D85B8332222FABD1002168F3 /* CheckmarkOnSelectionTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CheckmarkOnSelectionTableViewCell.xib; sourceTree = "<group>"; };
634-
D85B8335222FCDA1002168F3 /* CheckmarkOnSelectionTableViewCellTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = CheckmarkOnSelectionTableViewCellTests.swift; path = WooCommerceTests/Views/CheckmarkOnSelectionTableViewCellTests.swift; sourceTree = SOURCE_ROOT; };
632+
D85B8331222FABD1002168F3 /* StatusListTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StatusListTableViewCell.swift; sourceTree = "<group>"; };
633+
D85B8332222FABD1002168F3 /* StatusListTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = StatusListTableViewCell.xib; sourceTree = "<group>"; };
634+
D85B8335222FCDA1002168F3 /* StatusListTableViewCellTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = StatusListTableViewCellTests.swift; path = WooCommerceTests/Views/StatusListTableViewCellTests.swift; sourceTree = SOURCE_ROOT; };
635635
/* End PBXFileReference section */
636636

637637
/* Begin PBXFrameworksBuildPhase section */
@@ -767,7 +767,7 @@
767767
B53A569521123D27000776C9 /* Tools */ = {
768768
isa = PBXGroup;
769769
children = (
770-
D85B8335222FCDA1002168F3 /* CheckmarkOnSelectionTableViewCellTests.swift */,
770+
D85B8335222FCDA1002168F3 /* StatusListTableViewCellTests.swift */,
771771
93FA787121CD2A1A00B663E5 /* CurrencySettingsTests.swift */,
772772
B53A569621123D3B000776C9 /* ResultsControllerUIKitTests.swift */,
773773
B517EA19218B2D2600730EC4 /* StringFormatterTests.swift */,
@@ -1340,8 +1340,8 @@
13401340
CE27257D21925AE8002B22EB /* ValueOneTableViewCell.swift */,
13411341
CE27257E21925AE8002B22EB /* ValueOneTableViewCell.xib */,
13421342
B5A56BEF219F2CE90065A902 /* VerticalButton.swift */,
1343-
D85B8331222FABD1002168F3 /* CheckmarkOnSelectionTableViewCell.swift */,
1344-
D85B8332222FABD1002168F3 /* CheckmarkOnSelectionTableViewCell.xib */,
1343+
D85B8331222FABD1002168F3 /* StatusListTableViewCell.swift */,
1344+
D85B8332222FABD1002168F3 /* StatusListTableViewCell.xib */,
13451345
);
13461346
path = ReusableViews;
13471347
sourceTree = "<group>";
@@ -1543,7 +1543,7 @@
15431543
CE85FD5C20F7A7740080B73E /* TableFooterView.xib in Resources */,
15441544
B57C744C20F564B400EEFC87 /* EmptyStoresTableViewCell.xib in Resources */,
15451545
B59C09DC2188D70200AB41D6 /* Notifications.storyboard in Resources */,
1546-
D85B8334222FABD1002168F3 /* CheckmarkOnSelectionTableViewCell.xib in Resources */,
1546+
D85B8334222FABD1002168F3 /* StatusListTableViewCell.xib in Resources */,
15471547
CE855367209BA6A700938BDC /* ShowHideSectionFooter.xib in Resources */,
15481548
B5F571A621BEC92A0010D1B8 /* NoteDetailsHeaderPlainTableViewCell.xib in Resources */,
15491549
B5F355F121CD504400A7077A /* OrderSearchViewController.xib in Resources */,
@@ -1804,7 +1804,7 @@
18041804
B5F355EF21CD500200A7077A /* OrderSearchViewController.swift in Sources */,
18051805
B55D4C2720B717C000D7A50F /* UserAgent.swift in Sources */,
18061806
CE1CCB402056F21C000EE3AC /* Style.swift in Sources */,
1807-
D85B8333222FABD1002168F3 /* CheckmarkOnSelectionTableViewCell.swift in Sources */,
1807+
D85B8333222FABD1002168F3 /* StatusListTableViewCell.swift in Sources */,
18081808
CE22E3F72170E23C005A6BEF /* PrivacySettingsViewController.swift in Sources */,
18091809
B58B4AB32108F01700076FDD /* NoticePresenter.swift in Sources */,
18101810
CE21B3D720FE669A00A259D5 /* BasicTableViewCell.swift in Sources */,
@@ -1947,7 +1947,7 @@
19471947
B57C5C9F21B80E8300FF82B2 /* SampleError.swift in Sources */,
19481948
B53B898920D450AF00EDB467 /* SessionManagerTests.swift in Sources */,
19491949
7435E59021C0162C00216F0F /* OrderNoteWooTests.swift in Sources */,
1950-
D85B8336222FCDA1002168F3 /* CheckmarkOnSelectionTableViewCellTests.swift in Sources */,
1950+
D85B8336222FCDA1002168F3 /* StatusListTableViewCellTests.swift in Sources */,
19511951
B555531321B57E8800449E71 /* MockupUserNotificationsCenterAdapter.swift in Sources */,
19521952
CEEC9B6621E7C5200055EEF0 /* AppRatingManagerTests.swift in Sources */,
19531953
B555531121B57E6F00449E71 /* MockupApplicationAdapter.swift in Sources */,

WooCommerce/WooCommerceTests/Views/CheckmarkOnSelectionTableViewCellTests.swift renamed to WooCommerce/WooCommerceTests/Views/StatusListTableViewCellTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import XCTest
22
@testable import WooCommerce
33

4-
final class CheckmarkOnSelectionTableViewCellTests: XCTestCase {
5-
private var cell: CheckmarkOnSelectionTableViewCell?
4+
final class StatusListTableViewCellTests: XCTestCase {
5+
private var cell: StatusListTableViewCell?
66

77
override func setUp() {
88
super.setUp()
9-
let nib = Bundle.main.loadNibNamed("CheckmarkOnSelectionTableViewCell", owner: self, options: nil)
10-
cell = nib?.first as? CheckmarkOnSelectionTableViewCell
9+
let nib = Bundle.main.loadNibNamed("StatusListTableViewCell", owner: self, options: nil)
10+
cell = nib?.first as? StatusListTableViewCell
1111
}
1212

1313
override func tearDown() {

0 commit comments

Comments
 (0)