Replace usages of deprecated AssertLegacyTrait::assertTitle()