Мелкофиксы
- `Ffd105Tags::CLIENT_CONTACTS` => `CLIENT_PHONE_EMAIL` + мелочи по `Client`, `ClientTest` и `PayingAgentTest`
This commit is contained in:
@@ -17,8 +17,7 @@ use AtolOnline\{
|
||||
Exceptions\TooLongClientNameException,
|
||||
Exceptions\TooLongEmailException,
|
||||
Helpers,
|
||||
Tests\BasicTestCase
|
||||
};
|
||||
Tests\BasicTestCase};
|
||||
|
||||
/**
|
||||
* Набор тестов для проверки работы класса покупателя
|
||||
@@ -111,8 +110,6 @@ class ClientTest extends BasicTestCase
|
||||
(new Client())->setName(Helpers::randomStr(400));
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Тестирует установку телефонов, которые приводятся к null
|
||||
*
|
||||
@@ -158,8 +155,6 @@ class ClientTest extends BasicTestCase
|
||||
(new Client())->setPhone('99999999999999999999999999999999999999999999999999999999999999999999999999');
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Тестирует установку валидных email-ов
|
||||
*
|
||||
@@ -208,8 +203,6 @@ class ClientTest extends BasicTestCase
|
||||
(new Client())->setEmail($email);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Тестирует исключение о корректной длине ИНН
|
||||
*
|
||||
|
||||
@@ -67,16 +67,17 @@ class PayingAgentTest extends BasicTestCase
|
||||
/**
|
||||
* Тестирует установку операций, которые приводятся к null
|
||||
*
|
||||
* @param mixed $name
|
||||
* @param mixed $operation
|
||||
* @dataProvider providerNullableStrings
|
||||
* @covers \AtolOnline\Entities\PayingAgent
|
||||
* @covers \AtolOnline\Entities\PayingAgent::setOperation
|
||||
* @covers \AtolOnline\Entities\PayingAgent::getOperation
|
||||
* @throws TooLongPayingAgentOperationException
|
||||
* @throws InvalidPhoneException
|
||||
*/
|
||||
public function testNullableOperations(mixed $name): void
|
||||
public function testNullableOperations(mixed $operation): void
|
||||
{
|
||||
$this->assertNull((new PayingAgent())->setOperation($name)->getOperation());
|
||||
$this->assertNull((new PayingAgent($operation))->getOperation());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user