/** * @return void */ public function testExceptionRaisedIfAttemptingToUpdateNonExistentTaxRate() { $taxRateTransfer = $this->createTaxRateTransfer(); $taxRateTransfer->setIdTaxRate(self::NON_EXISTENT_ID); $exceptionOccurred = false; try { $this->taxFacade->updateTaxRate($taxRateTransfer); } catch (ResourceNotFoundException $e) { $exceptionOccurred = true; } $this->assertTrue($exceptionOccurred); }