-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAGETWO-33450: [GITHUB] When accessing any category - error report ge…
…nerated #899
- Loading branch information
Yurii Torbyk
committed
Feb 10, 2015
1 parent
0b22d74
commit cf79f59
Showing
3 changed files
with
27 additions
and
0 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
25 changes: 25 additions & 0 deletions
25
dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/ViewTest.php
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,25 @@ | ||
<?php | ||
/** | ||
* Copyright © 2015 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
namespace Magento\Catalog\Controller\Product; | ||
|
||
/** | ||
* @magentoDataFixture Magento/Catalog/controllers/_files/products.php | ||
*/ | ||
class ViewTest extends \Magento\TestFramework\TestCase\AbstractController | ||
{ | ||
/** | ||
* @magentoConfigFixture current_store catalog/seo/product_canonical_tag 1 | ||
*/ | ||
public function testViewActionWithCanonicalTag() | ||
{ | ||
$this->dispatch('catalog/product/view/id/1/'); | ||
|
||
$this->assertContains( | ||
'<link rel="canonical" href="http://localhost/index.php/catalog/product/view/_ignore_category/1/id/1/" />', | ||
$this->getResponse()->getBody() | ||
); | ||
} | ||
} |