mirror of
https://git.yoomoney.ru/scm/sdk/yookassa-sdk-php.git
synced 2026-09-14 11:56:14 +00:00
cbcdbc8ae1
Отказ от поддержки PHP < 8 Изменена структура файлов Переработана логика работы с моделями Добавлено использование валидатора данных в моделях Массивы объектов заменены на объекты-коллекции
33 lines
729 B
PHP
33 lines
729 B
PHP
<?php
|
|
|
|
namespace Tests\YooKassa\Request\Receipts;
|
|
|
|
use YooKassa\Request\Receipts\SimpleReceiptResponse;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
class SimpleReceiptResponseTest extends AbstractTestReceiptResponse
|
|
{
|
|
protected string $type = 'simple';
|
|
|
|
/**
|
|
* @dataProvider validDataProvider
|
|
*/
|
|
public function testSpecificProperties(array $options): void
|
|
{
|
|
$instance = $this->getTestInstance($options);
|
|
self::assertEquals($options['id'], $instance->getId());
|
|
}
|
|
|
|
protected function getTestInstance($options): SimpleReceiptResponse
|
|
{
|
|
return new SimpleReceiptResponse($options);
|
|
}
|
|
|
|
protected function addSpecificProperties($options, $i): array
|
|
{
|
|
return $options;
|
|
}
|
|
}
|