/** * @test */ public function getAffiliationKey() { $this->assertEquals('25fbb997438630f30b112d033ce2e621b34f3', $this->merchant->getAffiliationKey()); }
/** * @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; }