/** * @test */ public function allFieldsCanBeSet() { $in = ['legal_entity_type' => 'A', 'account_name' => 'B', 'brand' => 'C', 'your_reference' => 'D', 'status' => 'E', 'street' => 'F', 'city' => 'G', 'state_or_province' => 'H', 'country' => 'I', 'postal_code' => 'J', 'spread_table' => 'K', 'identification_type' => 'L', 'identification_value' => 'M', 'on_behalf_of' => null]; $entryPoint = new AccountsEntryPoint(new SimpleEntityManager(), $this->getMockedClient(json_decode(json_encode($this->out)), 'POST', 'accounts/create', [], $in)); $account = Account::create('B', 'A')->setBrand('C')->setYourReference('D')->setStatus('E')->setStreet('F')->setCity('G')->setStateOrProvince('H')->setCountry('I')->setPostalCode('J')->setSpreadTable('K')->setIdentificationType('L')->setIdentificationValue('M')->setShortReference('N'); $account = $entryPoint->create($account); $this->validateObjectStrictName($account, $this->out); }