         }
     }
     
-    func testLayout() {
-        verify(view: collectionView)
+    required init?(coder aDecoder: NSCoder) {
+        fatalError("init(coder:) has not been implemented")
     }
-
+    
     static func mockData() -> [PolaroidCollectionViewCell.VM] {
         return AzzurriViewController.mockData().map({
             return PolaroidCollectionViewCell.VM(


@available(iOS 11.0, *)
class PolaroidCollectionViewCellTests: BSWSnapshotTest {
    var collectionView: UICollectionView!
    var dataSource: CollectionViewDataSource<PolaroidCollectionViewCell>!

    override func setUp() {
        super.setUp()
        let columnLayout = ColumnFlowLayout()
        columnLayout.minColumnWidth = 120
        columnLayout.cellFactory = { [unowned self] indexPath in
            let cell = PolaroidCollectionViewCell()
            guard let vm = self.dataSource.data[safe: indexPath.item] else {
                return cell
            }
            cell.configureFor(viewModel: vm)
            return cell
        }
        collectionView = UICollectionView(frame: CGRect(x: 0, y: 0, width: 350, height: 500), collectionViewLayout: columnLayout)
        dataSource = CollectionViewDataSource<PolaroidCollectionViewCell>(
            data: PolaroidCollectionViewCellTests.mockData(),
            collectionView: collectionView
        )
        dataSource.pullToRefreshSupport = CollectionViewPullToRefreshSupport { completion in
            DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + .seconds(2), execute: {
                let vm1 = PolaroidCollectionViewCell.VM(
                    cellImage: Photo.emptyPhoto(),

        })
    }
}
