mirror of
https://github.com/anthonyaxenov/atol-online.git
synced 2024-11-22 15:04:33 +00:00
Мелкофикс теста KktMonitor::GetOne()
This commit is contained in:
parent
e89369348a
commit
6620acf1bf
@ -1,4 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2020-2021 Антон Аксенов (Anthony Axenov)
|
||||||
|
*
|
||||||
|
* This code is licensed under MIT.
|
||||||
|
* Этот код распространяется по лицензии MIT.
|
||||||
|
* https://github.com/anthonyaxenov/atol-online/blob/master/LICENSE
|
||||||
|
*/
|
||||||
|
|
||||||
namespace AtolOnlineTests;
|
namespace AtolOnlineTests;
|
||||||
|
|
||||||
@ -25,7 +32,7 @@ class KktMonitorTest extends BasicTestCase
|
|||||||
/**
|
/**
|
||||||
* Возвращает объект клиента для тестирования с тестовым API АТОЛ
|
* Возвращает объект клиента для тестирования с тестовым API АТОЛ
|
||||||
*
|
*
|
||||||
* @return AtolClient
|
* @return KktMonitor
|
||||||
* @throws EmptyLoginException
|
* @throws EmptyLoginException
|
||||||
* @throws EmptyPasswordException
|
* @throws EmptyPasswordException
|
||||||
* @throws TooLongLoginException
|
* @throws TooLongLoginException
|
||||||
@ -320,12 +327,12 @@ class KktMonitorTest extends BasicTestCase
|
|||||||
* @throws EmptyMonitorDataException
|
* @throws EmptyMonitorDataException
|
||||||
* @throws NotEnoughMonitorDataException
|
* @throws NotEnoughMonitorDataException
|
||||||
*/
|
*/
|
||||||
public function testMOnitorGetOne(): void
|
public function testMonitorGetOne(): void
|
||||||
{
|
{
|
||||||
$this->skipIfMonitoringIsOffline();
|
$this->skipIfMonitoringIsOffline();
|
||||||
$client = $this->newTestClient();
|
$client = $this->newTestClient();
|
||||||
$client->auth();
|
$client->auth();
|
||||||
$serial_number = $client->getAll()->random()->serialNumber;
|
$serial_number = $client->getAll()->first()->serialNumber;
|
||||||
$kkt = $client->getOne($serial_number);
|
$kkt = $client->getOne($serial_number);
|
||||||
$this->assertNotEmpty($client->getResponse());
|
$this->assertNotEmpty($client->getResponse());
|
||||||
$this->assertIsSameClass(Kkt::class, $kkt);
|
$this->assertIsSameClass(Kkt::class, $kkt);
|
||||||
|
Loading…
Reference in New Issue
Block a user