<?php


namespace VideoTest\V1\Rest\Favorite;

use Zend\Test\PHPUnit\Controller\AbstractControllerTestCase;

class FavoriteResourceTest extends AbstractControllerTestCase
{
    private $serviceManager;

    public function setUp()
    {
        $this->setApplicationConfig(
            include './config/tests.config.php'
        );
        parent::setUp();
        $this->serviceManager = $this->getApplicationServiceLocator();
        $this->serviceManager->setAllowOverride(true);
    }

    public function testClassType()
    {
        $favoriteResource = $this->serviceManager->get('Video\V1\Rest\Favorite\FavoriteResource');

        $this->assertInstanceOf('Video\V1\Rest\Favorite\FavoriteResource', $favoriteResource);
    }
}
