Skip to content

Commit

Permalink
Remove exception for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
giansalex committed Oct 10, 2017
1 parent c9d6260 commit 2d40c2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 39 deletions.
21 changes: 6 additions & 15 deletions tests/Greenter/Factory/CeFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ public function testDespatch()
);
}

public function testDespatchException()
{
$despatch = $this->getDespatch();
$despatch->setTipoDoc('000');
$this->getFactoryResult($despatch);
}

public function testRetention()
{
Expand All @@ -52,9 +58,6 @@ public function testRetention()
);
}

/**
* @expectedException \Greenter\Xml\Exception\ValidationException
*/
public function testRetentionException()
{
$retention = $this->getRetention();
Expand Down Expand Up @@ -86,19 +89,13 @@ public function testPerceptionNotValidTasa()
$this->assertEquals('2603', $result->getError()->getCode());
}

/**
* @expectedException \Greenter\Xml\Exception\ValidationException
*/
public function testPerceptionException()
{
$perception = $this->getPerception();
$perception->setSerie('FF000');
$this->getFactoryResult($perception);
}

/**
* @expectedException \Greenter\Xml\Exception\ValidationException
*/
public function testCreateXmlIPerceptionException()
{
$perception = $this->getPerception();
Expand All @@ -125,19 +122,13 @@ public function testReversion()
return $result->getTicket();
}

/**
* @expectedException \Greenter\Xml\Exception\ValidationException
*/
public function testReversionException()
{
$reversion = $this->getReversion();
$reversion->getDetails()[0]->setTipoDoc('100');
$this->getFactoryResult($reversion);
}

/**
* @expectedException \Greenter\Xml\Exception\ValidationException
*/
public function testXmlReversionException()
{
$reversion = $this->getReversion();
Expand Down
24 changes: 0 additions & 24 deletions tests/Greenter/Factory/FeFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ public function testInvoice()
$this->assertNotEmpty($result->getCdrZip());
}

/**
* @expectedException \Greenter\Xml\Exception\ValidationException
*/
public function testCreateXmlInvoiceException()
{
$invoice = $this->getInvoice();
Expand Down Expand Up @@ -68,9 +65,6 @@ public function testInvoiceNotValidZipFileName()
$this->assertEquals('0151', $result->getError()->getCode());
}

/**
* @expectedException \Greenter\Xml\Exception\ValidationException
*/
public function testXmlCreditNoteException()
{
$note = $this->getCreditNote();
Expand All @@ -90,9 +84,6 @@ public function testInvoiceRechazado()
$this->assertEquals('2016', $result->getError()->getCode());
}

/**
* @expectedException \Greenter\Xml\Exception\ValidationException
*/
public function testInvoiceInvalid()
{
$invoice = $this->getInvoice();
Expand All @@ -113,9 +104,6 @@ public function testNotaCredito()
);
}

/**
* @expectedException \Greenter\Xml\Exception\ValidationException
*/
public function testCreditNoteException()
{
$creditNote = $this->getCreditNote();
Expand All @@ -136,9 +124,6 @@ public function testNotaDebito()
);
}

/**
* @expectedException \Greenter\Xml\Exception\ValidationException
*/
public function testDebitNoteException()
{
$debitNote = $this->getDebitNote();
Expand All @@ -161,9 +146,6 @@ public function testResumen()
$result->getError()->getMessage());
}

/**
* @expectedException \Greenter\Xml\Exception\ValidationException
*/
public function testXmlSummaryException()
{
$summary = $this->getSummary();
Expand All @@ -184,19 +166,13 @@ public function testResumenV2()
$this->assertEquals(13, strlen($result->getTicket()));
}

/**
* @expectedException \Greenter\Xml\Exception\ValidationException
*/
public function testResumenException()
{
$resumen = $this->getSummary();
$resumen->setCorrelativo('1234');
$this->getFactoryResult($resumen);
}

/**
* @expectedException \Greenter\Xml\Exception\ValidationException
*/
public function testXmlSummaryV2Exception()
{
$summary = $this->getSummary();
Expand Down

0 comments on commit 2d40c2c

Please sign in to comment.