open-orchestra/open-orchestra-media-bundle

View on GitHub
Media/Tests/BBcode/MediaBundleBBcodeCollectionTest.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace OpenOrchestra\Media\Tests\BBcode;

use OpenOrchestra\BaseBundle\Tests\AbstractTest\AbstractBaseTestCase;
use Phake;
use OpenOrchestra\Media\BBcode\MediaBundleBBcodeCollection;

/**
 * Class MediaBundleBBcodeDefinitionTest
 *
 */
class MediaBundleBBcodeDefinitionTest extends AbstractBaseTestCase
{
    protected $definitionCollection;
    protected $mediaDefinition;
    protected $mediaWithoutFormatDefinition;

    /**
     * Set up the test
     */
    public function setUp()
    {
        $this->mediaDefinition = Phake::mock('OpenOrchestra\Media\BBcode\MediaCodeDefinition');
        $this->mediaWithoutFormatDefinition = Phake::mock('OpenOrchestra\Media\BBcode\MediaWithoutFormatCodeDefinition');
        $this->definitionCollection = new MediaBundleBBcodeCollection($this->mediaDefinition, $this->mediaWithoutFormatDefinition);
    }

    /**
     * Test instance
     */
    public function testInstance() {
        $this->assertInstanceOf('OpenOrchestra\BBcodeBundle\Definition\BBcodeDefinitionCollectionInterface', $this->definitionCollection);
    }
}