mirror of
https://github.com/anthonyaxenov/atol-online.git
synced 2024-11-22 10:24:34 +00:00
Удалён метод AtolOnline\Entities\Kkt::getNetworkError()
за ненадобностью
This commit is contained in:
parent
95499174b0
commit
d281071970
@ -126,19 +126,6 @@ final class Kkt extends Entity
|
||||
return $this->data->$name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Возвращает объект с информацией о сетевой ошибке
|
||||
*
|
||||
* @return object
|
||||
*/
|
||||
public function getNetworkError(): object
|
||||
{
|
||||
return (object)[
|
||||
'code' => $this->data->networkErrorCode,
|
||||
'text' => self::ERROR_CODES[$this->data->networkErrorCode],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
|
@ -133,21 +133,4 @@ class KktEntityTest extends BasicTestCase
|
||||
$this->expectException(Exception::class);
|
||||
(new Kkt((object)$this->sample_data))->firstUnsetDocTimestamp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Тестирует получение данных о сетевой ошибке
|
||||
*
|
||||
* @covers \AtolOnline\Entities\Kkt::getNetworkError
|
||||
* @throws EmptyMonitorDataException
|
||||
* @throws NotEnoughMonitorDataException
|
||||
*/
|
||||
public function testGetNetworkError(): void
|
||||
{
|
||||
$kkt = new Kkt((object)$this->sample_data);
|
||||
$this->assertIsObject($kkt->getNetworkError());
|
||||
$this->assertEquals((object)[
|
||||
'code' => $kkt->networkErrorCode,
|
||||
'text' => $kkt::ERROR_CODES[$kkt->networkErrorCode],
|
||||
], $kkt->getNetworkError());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user