<?php
namespace Kunstmaan\PagePartBundle\Tests\Entity;
use Kunstmaan\PagePartBundle\Entity\TocPagePart;

/**
 * Generated by PHPUnit_SkeletonGenerator on 2012-08-20 at 14:38:48.
 */
class TocPagePartTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var TocPagePart
     */
    protected $object;

    /**
     * Sets up the fixture, for example, opens a network connection.
     * This method is called before a test is executed.
     */
    protected function setUp()
    {
        $this->object = new TocPagePart();
    }

    /**
     * Tears down the fixture, for example, closes a network connection.
     * This method is called after a test is executed.
     */
    protected function tearDown()
    {
    }

    /**
     * Generated from @assert () == 'TocPagePart'.
     *
     * @covers                Kunstmaan\PagePartBundle\Entity\TocPagePart::__toString
     */
    public function testToString()
    {
        $this->assertEquals('TocPagePart', $this->object->__toString());
    }

    /**
     * Generated from @assert () == 'KunstmaanPagePartBundle:TocPagePart:view.html.twig'.
     *
     * @covers                Kunstmaan\PagePartBundle\Entity\TocPagePart::getDefaultView
     */
    public function testGetDefaultView()
    {
        $this->assertEquals('KunstmaanPagePartBundle:TocPagePart:view.html.twig', $this->object->getDefaultView());
    }

    /**
     * @covers Kunstmaan\PagePartBundle\Entity\TocPagePart::getDefaultAdminType
     */
    public function testGetDefaultAdminType()
    {
        $this->assertInstanceOf('Kunstmaan\PagePartBundle\Form\TocPagePartAdminType', $this->object->getDefaultAdminType());
    }
}
