diff --git a/t/api/login.t b/t/api/login.t index b1fef6d..1521378 100644 --- a/t/api/login.t +++ b/t/api/login.t @@ -24,7 +24,7 @@ my $test_json = { 'email' => $email, 'postcode' => 'LA1 1AA', 'password' => $password, - 'age_range' => 1 + year_of_birth => 2006 }; $t->post_ok('/api/register' => json => $test_json) ->status_is(200) diff --git a/t/api/stats.t b/t/api/stats.t index 180a91f..7468795 100644 --- a/t/api/stats.t +++ b/t/api/stats.t @@ -17,7 +17,7 @@ my $user = { email => 'test@example.com', postcode => 'LA1 1AA', password => 'abc123', - age_range => 1, + year_of_birth => 2006, }; my $org = { diff --git a/t/api/stats_leaderboards.t b/t/api/stats_leaderboards.t index e8bf855..792c24d 100644 --- a/t/api/stats_leaderboards.t +++ b/t/api/stats_leaderboards.t @@ -17,7 +17,7 @@ my $user1 = { email => 'test1@example.com', postcode => 'LA1 1AA', password => 'abc123', - age_range => 1, + year_of_birth => 2006, }; my $user2 = { @@ -27,7 +27,7 @@ my $user2 = { email => 'test2@example.com', postcode => 'LA1 1AA', password => 'abc123', - age_range => 1, + year_of_birth => 2006, }; my $user3 = { @@ -37,7 +37,7 @@ my $user3 = { email => 'test3@example.com', postcode => 'LA1 1AA', password => 'abc123', - age_range => 1, + year_of_birth => 2006, }; my $user4 = { @@ -47,7 +47,7 @@ my $user4 = { email => 'test4@example.com', postcode => 'LA1 1AA', password => 'abc123', - age_range => 1, + year_of_birth => 2006, }; my $org = { diff --git a/t/api/user.t b/t/api/user.t index b65abdc..76eb6ee 100644 --- a/t/api/user.t +++ b/t/api/user.t @@ -24,7 +24,7 @@ $framework->register_customer({ 'email' => $email, 'postcode' => 'LA1 1AA', 'password' => $password, - 'age_range' => 1 + year_of_birth => 2006 }); my $session_key = $framework->login({