/** * @test */ public function getAffiliationId() { $this->assertEquals('1006993069', $this->merchant->getAffiliationId()); }
/** * @param Merchant $merchant * @param DOMDocument $document * @return \DOMElement */ protected function createDadosEc($merchant, DOMDocument $document) { $dadosEc = $document->createElementNS(self::NS, 'dados-ec'); $numero = $document->createElementNS(self::NS, 'numero', $merchant->getAffiliationId()); $chave = $document->createElementNS(self::NS, 'chave', $merchant->getAffiliationKey()); $dadosEc->appendChild($numero); $dadosEc->appendChild($chave); return $dadosEc; }