77use TecnoSpeed \Plugnotas \Common \Endereco ;
88use TecnoSpeed \Plugnotas \Common \Telefone ;
99use TecnoSpeed \Plugnotas \Common \ValorAliquota ;
10+ use TecnoSpeed \Plugnotas \Configuration ;
1011use TecnoSpeed \Plugnotas \Error \RequiredError ;
1112use TecnoSpeed \Plugnotas \Error \ValidationError ;
1213use TecnoSpeed \Plugnotas \Nfse ;
@@ -175,6 +176,8 @@ public function testWithValidData()
175176 $ impressao = new Impressao ();
176177 $ impressao ->setCamposCustomizados (['teste ' =>'testeImpressao ' ]);
177178
179+ $ configuration = new Configuration ();
180+
178181 $ nfse = new Nfse ();
179182 $ nfse ->setCidadePrestacao ($ cidadePrestacao );
180183 $ nfse ->setEnviarEmail (false );
@@ -185,6 +188,7 @@ public function testWithValidData()
185188 $ nfse ->setServico ($ this ->getServico ());
186189 $ nfse ->setSubstituicao (false );
187190 $ nfse ->setTomador ($ this ->getTomador ());
191+ $ nfse ->setConfiguration ($ configuration );
188192
189193 $ this ->assertSame ($ nfse ->getCidadePrestacao ()->getDescricao (), 'Cidade de Teste ' );
190194 $ this ->assertSame ($ nfse ->getEnviarEmail (), false );
@@ -195,6 +199,7 @@ public function testWithValidData()
195199 $ this ->assertSame ($ nfse ->getServico ()->getIdIntegracao (), 'A001XT ' );
196200 $ this ->assertSame ($ nfse ->getSubstituicao (), false );
197201 $ this ->assertSame ($ nfse ->getTomador ()->getCpfCnpj (), '00000000000191 ' );
202+ $ this ->assertInstanceOf (Configuration::class, $ nfse ->getConfiguration ());
198203 }
199204
200205 public function testCreateObjectFromArray ()
0 commit comments