/** @test */ function it_has_a_shortcut_to_fill_uk_bank_details() { $account = new CustomerBankAccount(); $customer = new Customer(); $account->withAccountDetails('John Doe', '12345678', '112233', 'GB', $customer); $this->assertEquals('John Doe', $account->getAccountHolderName()); $this->assertEquals('12345678', $account->getAccountNumber()); $this->assertEquals('112233', $account->getSortCode()); $this->assertEquals('GB', $account->getCountryCode()); $this->assertAttributeSame($customer, 'customer', $account); }