-
-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When using SiteRequestFactory in the front controller, there might be a cache generation problem: SiteRequest and SiteRequestInterface are loaded, and when the cache generated in CLI, which may contain the very same classes is loaded, leading to a conflict.
- Loading branch information
1 parent
007db7e
commit 38085c4
Showing
2 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Sonata Project package. | ||
* | ||
* (c) Thomas Rabaix <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sonata\PageBundle\Tests\DependencyInjection; | ||
|
||
use Sonata\PageBundle\DependencyInjection\SonataPageExtension; | ||
|
||
/** | ||
* Tests the SonataPageExtension. | ||
* | ||
* @author Rémi Marseille <[email protected]> | ||
*/ | ||
class SonataPageExtensionTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
/** | ||
* Tests the configureClassesToCompile method. | ||
*/ | ||
public function testConfigureClassesToCompile() | ||
{ | ||
$extension = new SonataPageExtension(); | ||
$extension->configureClassesToCompile(); | ||
|
||
$this->assertNotContains('Sonata\\PageBundle\\Request\\SiteRequest', $extension->getClassesToCompile()); | ||
$this->assertNotContains('Sonata\\PageBundle\\Request\\SiteRequestInterface', $extension->getClassesToCompile()); | ||
} | ||
} |