I noticed in #1935922: Convert PhpStorage tests to phpunit there's a lot of renaming from assertIdentical() in simpletest to assertSame() in PHPUnit.
We should probably rename this function wholesale for better compatibility with PHPUnit.
I think this would also be backportable, assuming it was just a wrapper and we didn't actually remove assertIdentical().
Comments
Comment #1
msonnabaum commentedTotally agree. Renaming for d8 and adding an alias method for d7 make ssense.
Comment #2
chx commentedWhat good does it serve if we rename a method to be the same as PHPUnit but the tests are not , isn't that just confusing?
Comment #3
jhodgdonIs this still on the table?
Comment #6
imiksuMarking this duplicate of #2756519: Convert assertIdentical() to assertSame() for some uses in kernel tests that already have assertSame()'s parameter order as it has some progress done.
Comment #7
seanbThis is not a duplicate as far as I can see. I think this is needed to actually complete the other issue #2756519: Convert assertIdentical() to assertSame() for some uses in kernel tests that already have assertSame()'s parameter order. There is an issue to convert al simpletests to phpunit #2735005: Convert all Simpletest web tests to BrowserTestBase (or UnitTestBase/KernelTestBase), but since it could take some time for all the tests are actually converted, this could help to make the transition go smooth.
For example: some core testbase classes (like EntityWithUriCacheTagsTestBase) still extend simpletest. This is going to be fixed. In the mean time we would like te be able to prepare as much as possible for this change in tests extending the testbases.
Comment #8
Antti J. Salminen commented@seanB: I believe both issues are useful but the other one doesn't depend on this. This issue is about renaming the SimpleTest method and all calls to it to be the same as the one in PHPUnit. #2756519: Convert assertIdentical() to assertSame() for some uses in kernel tests that already have assertSame()'s parameter order is about replacing calls to a wrapper provided by AssertLegacyTrait by direct calls to assertSame() in tests that are already using PHPUnit.
Comment #9
dawehnerI agree with @seanB, this is not really a duplicate. On the other hand I think we should first finish the process of moving from simpletest to phpunit and then convert all usages of one method to another in one go. Changing simpletest at the same time scatters the effort we do on the other side. Let's focus on one thing, as well, the result will be the same anyway :)
Comment #10
dawehnerGiven the process is almost over, I don't think this issue is still worth continueing.