CommerceGuys\Addressing\Tests\Formatter\DefaultFormatterTest::testOptions PHP Метод

testOptions() публичный Метод

public testOptions ( )
    public function testOptions()
    {
        $formatter = new DefaultFormatter($this->addressFormatRepository, $this->countryRepository, $this->subdivisionRepository, 'en', ['html' => false]);
        $expectedOptions = ['html' => false, 'html_tag' => 'p', 'html_attributes' => ['translate' => 'no']];
        $this->assertEquals($expectedOptions, $formatter->getOptions());
        $this->assertEquals('p', $formatter->getOption('html_tag'));
        $formatter->setOption('html_tag', 'div');
        $this->assertEquals('div', $formatter->getOption('html_tag'));
    }