# Step 6 — Real Numerology Calculation + Persistence Test

Step 5 confirmed that the existing database connection works and all 18 required tables exist.

This step performs one controlled end-to-end calculation using a temporary test user.

## What it tests

The test verifies the existing application can:

1. Create a temporary user.
2. Run the `book-v1` numerology profile calculator.
3. Persist the result into the existing database tables.
4. Verify the expected records were written.
5. Delete the temporary user when finished. The existing foreign keys use `ON DELETE CASCADE`, so the temporary calculation records are removed with it.

## Important

- Do NOT import any SQL file.
- Do NOT create or alter tables.
- Do NOT change the database structure.
- Do NOT send database credentials to ChatGPT.
- Keep `config/database.php` configured only on your server/test copy.

## Run the test

After Step 5's successful schema verification, upload this Step 6 project to your test location.

Open:

`/numerology-platform/tools/test-real-numerology-profile.php`

## Expected result

You should see JSON containing:

```json
{
  "success": true,
  "step": 6,
  "methodology_version": "book-v1"
}
```

and the five checks should all be `true`:

- `birth_names_saved`
- `birth_profile_saved`
- `numerology_profile_saved`
- `missing_numbers_processed`
- `calculation_run_saved`

## After the test

Do not leave this test file publicly accessible. Delete:

`tools/test-real-numerology-profile.php`

from the server after the test passes.

Do not delete or modify any database table.
