Skip to content

Commit 6820a9a

Browse files
committed
Restore previous visibilities + UT fixes
1 parent 48caa6c commit 6820a9a

2 files changed

Lines changed: 12 additions & 15 deletions

File tree

Classes/GLTableCollectionViewController.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ final class GLTableCollectionViewController: UITableViewController, UICollection
3636
// looking for in the debugger. Look in UITableView's data source
3737
// cellForRowAt method for more explanations about the UITableViewCell reuse
3838
// handling.
39-
private static let tableCellID: String = "tableViewCellID_section_#"
39+
static let tableCellID: String = "tableViewCellID_section_#"
4040

41-
private let numberOfSections: Int = 20
42-
private let numberOfCollectionsForRow: Int = 1
43-
private let numberOfCollectionItems: Int = 20
41+
let numberOfSections: Int = 20
42+
let numberOfCollectionsForRow: Int = 1
43+
let numberOfCollectionItems: Int = 20
4444

45-
private var colorsDict: [Int: [UIColor]] = [:]
45+
var colorsDict: [Int: [UIColor]] = [:]
4646

4747
/// Set true to enable UICollectionViews scroll pagination
48-
private var paginationEnabled: Bool = true
48+
var paginationEnabled: Bool = true
4949

5050
override func viewDidLoad() {
5151
super.viewDidLoad()

GLTableCollectionViewTests/GLTableCollectionViewTests.swift

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,14 @@ class GLTableCollectionViewTests: XCTestCase {
5858
XCTAssertGreaterThan(tableCollectionView.numberOfCollectionItems, 0,
5959
"numberOfCollectionItems was: \(tableCollectionView.numberOfCollectionItems)\nThere must be at least one GLIndexedCollectionViewCell")
6060

61-
XCTAssertNotEqual(tableCollectionView.tableCellID, "",
62-
"tableCellID was: \(tableCollectionView.tableCellID)\nUITableViewCell's cellIdentifier must not be empty")
61+
XCTAssertNotEqual(GLTableCollectionViewController.tableCellID, "",
62+
"tableCellID was: \(GLTableCollectionViewController.tableCellID)\nUITableViewCell's cellIdentifier must not be empty")
6363

64-
XCTAssertTrue(tableCollectionView.tableCellID.hasSuffix("_section_#"),
65-
"tableCellID was: \(tableCollectionView.tableCellID)\nUITableViewCell's cellIdentifier must end with section number suffix")
64+
XCTAssertTrue(GLTableCollectionViewController.tableCellID.hasSuffix("_section_#"),
65+
"tableCellID was: \(GLTableCollectionViewController.tableCellID)\nUITableViewCell's cellIdentifier must end with section number suffix")
6666

67-
XCTAssertTrue((tableCollectionView.tableCellID.components(separatedBy: "#").count - 1) == 1,
68-
"tableCellID was: \(tableCollectionView.tableCellID)\nUITableViewCell's cellIdentifier must contain only one # in it")
69-
70-
XCTAssertNotEqual(tableCollectionView.collectionCellID, "",
71-
"The cellIdentifier for the UICollectionCells should not be empty")
67+
XCTAssertTrue((GLTableCollectionViewController.tableCellID.components(separatedBy: "#").count - 1) == 1,
68+
"tableCellID was: \(GLTableCollectionViewController.tableCellID)\nUITableViewCell's cellIdentifier must contain only one # in it")
7269
}
7370

7471
func testRandomColorsGeneration() {

0 commit comments

Comments
 (0)