for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace SergeyNezbritskiy\NovaPoshta\Tests\Integration\Models\ContactPerson;
use Exception;
use PHPUnit\Framework\TestCase;
use SergeyNezbritskiy\NovaPoshta\Models\ContactPerson;
use SergeyNezbritskiy\NovaPoshta\NovaPoshtaApiException;
use SergeyNezbritskiy\NovaPoshta\Tests\UsesConnectionTrait;
class DeleteContactPersonTest extends TestCase
{
use UsesConnectionTrait;
private ContactPerson $model;
protected function setUp(): void
$connection = $this->getConnection();
$this->model = new ContactPerson($connection);
}
/**
* @return void
* @throws NovaPoshtaApiException
* @throws Exception
*/
public function testDeleteNotExistingContactPerson(): void
$this->model->delete('not-existing-contact-person-ref');
$this->assertTrue(true, 'No exception has been thrown, we are good');