Canadian Fake Phone Numbers for QA Fixtures

Use a fictional Canada phone fixture for QA. Compare the original display value with international notation and test phone validation.

Test fixture

Input:          +1 613-555-0142
International:  +16135550142

Phone format

Canada participates in the North American Numbering Plan and uses +1. The sample uses an Ottawa area code with a reserved fictional line number in the 555-0100 to 555-0199 range. Use this fixture to exercise formatting in a Canadian interface with outbound notifications disabled.

A Canadian contact object often stores a region value as well as the international phone string. Keep the country selection explicit in your import. A form that infers the country from +1 alone can choose the wrong country entry. Test that a Canadian address and a +1 number can be saved together without switching the address to the US.

Form and import tests

Try English and French interface settings while holding the contact object steady. Check that the phone stays legible when labels become longer, and that copying produces the representation promised by the copy control. A table view may display spaces or hyphens while an API uses only the plus sign and digits.

Add a regression with a leading plus sign in a spreadsheet import. Some spreadsheet applications interpret leading plus signs as formulas or convert long digit strings. Configure the column as text and inspect the value after round-tripping an export. Use a dedicated fixture to test any apostrophe used to protect spreadsheet cells.

Fixture assertions

If the application supports phone extensions, test that the extension lands in a different field from the normalized international number. Use a distinct scenario for duplicate contacts where your system compares normalized numbers. Shared numbers are possible, so use a contact ID for tests that need a unique key.

The code asserts the exact normalization for this Ottawa fixture. Add at least one different Canadian area code in your own suite to exercise the area-code mapping. For provider tests, use a sandbox response to simulate valid delivery and an invalid destination response without sending real messages.

JavaScript test example

const raw = "+1 613-555-0142";
const normalized = raw.replace(/[ -]/g, "");
if (normalized !== "+16135550142") {
  throw new Error("Unexpected normalized phone fixture");
}

Related generators