Carew\Tests\CoreExtensionTest::testRegister PHP Method

testRegister() public method

public testRegister ( )
    public function testRegister()
    {
        $this->core->register($this->carew);
        $container = $this->carew->getContainer();
        $container['base_dir'] = __DIR__;
        $this->assertInstanceOf('Carew\\Builder', $container['builder']);
        $this->assertInstanceOf('Carew\\Processor', $container['processor']);
        $this->assertInstanceOf('Carew\\Helper\\Path', $container['helper.path']);
        $this->assertInstanceOf('Symfony\\Component\\Filesystem\\Filesystem', $container['filesystem']);
        $this->assertInstanceOf('Symfony\\Component\\Finder\\Finder', $container['finder']);
        $this->assertSame(array('site' => array(), 'engine' => array('post_permalink_format' => '%year%/%month%/%day%/%slug%.html', 'core_extensions' => array('toc' => true, 'feed' => true)), 'folders' => array('posts' => Document::TYPE_POST, 'pages' => Document::TYPE_PAGE, 'api' => Document::TYPE_API)), $container['config']);
        $this->assertSame(array(__DIR__), $container['themes']);
        $this->assertInstanceOf('Symfony\\Component\\EventDispatcher\\EventDispatcher', $container['event_dispatcher']);
        $this->assertInstanceOf('Carew\\Event\\Listener\\Decorator\\Twig', $container['listener.twig']);
    }