<?php

/*
 * This file is part of the MassiveSearchBundle
 *
 * (c) MASSIVE ART WebServices GmbH
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace Unit\Search;

use Massive\Bundle\SearchBundle\Search\Metadata\IndexMetadata;
use PHPUnit\Framework\TestCase;

class IndexMetadataTest extends TestCase
{
    /**
     * @var IndexMetadata
     */
    private $metadata;

    public function setUp()
    {
        $this->metadata = new IndexMetadata('\stdClass');
    }

    public function testGetSet()
    {
        $this->metadata->setImageUrlField('field');
        $this->assertEquals('field', $this->metadata->getImageUrlField());
    }
}
