Use iterator_count() instead of count() in MigrateTestCase::queryResultTest.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2166875-migrate-languages-25.patch | 13.78 KB | penyaskito |
| #1 | 2272219-1.patch | 1.02 KB | penyaskito |
Use iterator_count() instead of count() in MigrateTestCase::queryResultTest.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2166875-migrate-languages-25.patch | 13.78 KB | penyaskito |
| #1 | 2272219-1.patch | 1.02 KB | penyaskito |
Comments
Comment #1
penyaskitoComment #2
benjy commentedCan you give an example of why this is needed? How have the tests been passing all the time if the number of expected results were incorrect?
Comment #4
penyaskitoUploading the patch that caused the failures for me (see #2166875: Migrate D6 languages) just for the sake of testing against core in testbots.
Comment #5
penyaskito#2 @benjy: I'm as confused as you are. Probably core is right. I don't really expect this to be committed, I just need to understand why it happens and leave this documented somewhere.
Comment #9
penyaskitoSo my problem was that I had not overriden count(). It is still unknown why iterator_count() and count() returned different results, but the problem is now gone.