the death of a person affects the authority ruling
#language: en Feature: the death of a person affects the authority ruling Authority cannot be requested for a deceased parent. The authority module gives authority rulings only for living persons of full age. When a minor dies, that minor no longer appears in the authority ruling of the parent. Background: Given the person 'Hendrik' with citizen service number '000000012' * is of full age And the person 'Laura' with citizen service number '000000024' * is registered in the BRP * is a minor * was born in the Netherlands * has 'Hendrik' as parent 1 And the person 'Arjan' with citizen service number '000000036' * is registered in the BRP * is a minor * was born in the Netherlands * has 'Hendrik' as parent 1 And the person 'Jan' with citizen service number '000000048' * is registered in the BRP * is a minor * was born in the Netherlands * has 'Hendrik' as parent 1 Rule: an authority query for a person of full age supplies the authority relationship with the minor children of that person who have not died Scenario: for a person of full age, authority over all three children is supplied When 'gezag' is requested for 'Hendrik' Then 'Hendrik' has the following authority relationships * the authority over 'Laura' is sole parental authority with parent 'Hendrik' * the authority over 'Arjan' is sole parental authority with parent 'Hendrik' * the authority over 'Jan' is sole parental authority with parent 'Hendrik' Scenario: for a person of full age who has died, no authority is supplied Given person 'Hendrik' * has died When 'gezag' is requested for 'Hendrik' Then 'Hendrik' has the following authority relationships * the person has no authority Scenario: for a person of full age one of whose minors has died, authority is supplied for the two minors who have not died Given person 'Laura' * has died When 'gezag' is requested for 'Hendrik' Then 'Hendrik' has the following authority relationships * the authority over 'Arjan' is sole parental authority with parent 'Hendrik' * the authority over 'Jan' is sole parental authority with parent 'Hendrik' Scenario: for a person of full age all of whose minors have died, no authority is supplied Given person 'Laura' * has died Given person 'Arjan' * has died Given person 'Jan' * has died When 'gezag' is requested for 'Hendrik' Then 'Hendrik' has the following authority relationships * the person has no authority