[+BUGFIX] Extbase (MVC): format was not reset in Tx_Extbase_MVC_Web_Routing_UriBuilde...
authorBastian Waidelich <bastian@typo3.org>
Fri, 4 Sep 2009 16:22:16 +0000 (16:22 +0000)
committerBastian Waidelich <bastian@typo3.org>
Fri, 4 Sep 2009 16:22:16 +0000 (16:22 +0000)
typo3/sysext/extbase/Classes/MVC/Web/Routing/UriBuilder.php
typo3/sysext/extbase/Tests/MVC/Web/Routing/UriBuilder_testcase.php

index 630a5d3..678fc7b 100644 (file)
@@ -354,6 +354,7 @@ class Tx_Extbase_MVC_Web_Routing_UriBuilder {
        public function reset() {
                $this->arguments = array();
                $this->section = '';
+               $this->format = '';
                $this->createAbsoluteUri = FALSE;
                $this->addQueryString = FALSE;
                $this->argumentsToBeExcludedFromQueryString = array();
index 88fd8ab..f776f78 100644 (file)
@@ -300,6 +300,7 @@ class Tx_Extbase_MVC_Web_Routing_UriBuilder_testcase extends Tx_Extbase_Base_tes
                $this->uriBuilder
                        ->setArguments(array('test' => 'arguments'))
                        ->setSection('testSection')
+                       ->setFormat('someFormat')
                        ->setCreateAbsoluteUri(TRUE)
                        ->setAddQueryString(TRUE)
                        ->setArgumentsToBeExcludedFromQueryString(array('test' => 'addQueryStringExcludeArguments'))
@@ -313,6 +314,7 @@ class Tx_Extbase_MVC_Web_Routing_UriBuilder_testcase extends Tx_Extbase_Base_tes
 
                $this->assertEquals(array(), $this->uriBuilder->getArguments());
                $this->assertEquals('', $this->uriBuilder->getSection());
+               $this->assertEquals('', $this->uriBuilder->getFormat());
                $this->assertEquals(FALSE, $this->uriBuilder->getCreateAbsoluteUri());
                $this->assertEquals(FALSE, $this->uriBuilder->getAddQueryString());
                $this->assertEquals(array(), $this->uriBuilder->getArgumentsToBeExcludedFromQueryString());