Replace usages of AssertLegacyTrait::assertRaw, that is deprecated