<?php

namespace Brazanation\Documents\Tests\StateRegistration;

use Brazanation\Documents\AbstractDocument;
use Brazanation\Documents\StateRegistration;
use Brazanation\Documents\StateRegistration\Acre;
use Brazanation\Documents\Tests\DocumentTestCase;

class AcreTest extends DocumentTestCase
{
    public function createDocument(string $number) : AbstractDocument
    {
        return StateRegistration::AC($number);
    }

    public function createDocumentFromString(string $number)
    {
        return StateRegistration::createFromString($number, Acre::SHORT_NAME);
    }

    public function provideValidNumbers() : array
    {
        return [
            'AC' => ['0100482300112'],
        ];
    }

    public function provideValidNumbersAndExpectedFormat() : array
    {
        return [
            ['0100482300112', '01.004.823/001-12'],
        ];
    }

    public function provideEmptyData() : array
    {
        return [
            [Acre::LONG_NAME, ''],
        ];
    }

    public function provideInvalidNumber() : array
    {
        return [
            [Acre::LONG_NAME, '0100482300113'],
        ];
    }
}
