I'm trying to write a unit test that uses a tableView, and I'm having trouble accessing the cells.
This is always nil:
- (void)testDidEndEditingUpdatesLiftRecords {
TextViewCell *cell = (TextViewCell *) [tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]];
Despite the fact that I set the data source in the setup
- (void)setUp {
[super setUp];
source = [[MyDataSource alloc] init];
tableView = [[UITableView alloc] init];
[tableView setDataSource:source];
What could be