Prerender - Version 1.0.2

Version Notes

Support of Magento 1.8

Download this release

Release Info

Developer Laurent Clouet
Extension Prerender
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/code/community/Laurent/Prerender/etc/config.xml CHANGED
@@ -9,7 +9,7 @@
9
  <config>
10
  <modules>
11
  <Laurent_Prerender>
12
- <version>1.0.1</version>
13
  </Laurent_Prerender>
14
  </modules>
15
  <global>
9
  <config>
10
  <modules>
11
  <Laurent_Prerender>
12
+ <version>1.0.2</version>
13
  </Laurent_Prerender>
14
  </modules>
15
  <global>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Prerender</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/afl-3.0.php">Academic Free License (AFL 3.0)</license>
7
  <channel>community</channel>
@@ -12,12 +12,11 @@ site.</summary>
12
  site. This functionality allow you to prerender another page after viewed page&#xD;
13
  is loaded. You can then for example load next page of a category while firt page&#xD;
14
  is being viewed by customer.</description>
15
- <notes>Code refactored&#xD;
16
- Compatibility with Magento 1.7 checked</notes>
17
  <authors><author><name>Laurent Clouet</name><user>laurent35240</user><email>laurent35240@gmail.com</email></author></authors>
18
- <date>2013-05-12</date>
19
- <time>21:18:09</time>
20
- <contents><target name="magecommunity"><dir name="Laurent"><dir name="Prerender"><dir name="Block"><dir name="Adminhtml"><dir name="Cms"><dir name="Page"><dir name="Edit"><dir name="Tab"><file name="Prerender.php" hash="dbb296a84c203b4d15c71e1c7741f7db"/></dir></dir></dir></dir></dir><file name="Link.php" hash="bf80ad9136a9f4fef32eaebe25e5fc0f"/></dir><dir name="Helper"><file name="Data.php" hash="dcbf5d4e3852bc108aaeaa1ceec259bc"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="Config"><file name="Mode.php" hash="4d1bb52a761a12fd90d9e9823729f893"/></dir></dir></dir><dir name="doc"><file name="logo.jpg" hash="9a3602952a4fcf38c569cf97a995e6d9"/><file name="logo.svg" hash="8d6efd3edbdac63c42cf72cf50fe7542"/><file name="screenshot_cms_prerender_link_bo.png" hash="5e22e712e3e917e928692fb90077a9af"/><file name="screenshot_config_bo.png" hash="fee63ce607e6b8095cdbde0d5291f275"/></dir><dir name="etc"><file name="config.xml" hash="ad3d2974ad1885ab6b978d0bc8043122"/><file name="system.xml" hash="ca0e7f0c0c9966e854d0e1a434564063"/></dir><dir name="sql"><dir name="prerender_setup"><file name="install-0.1.0.php" hash="a343c7ae6f889b746aed46437825bb37"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="prerender.xml" hash="81951a2714d43f7a763d42856dca426e"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="prerender.xml" hash="f9b4b7bbd2ede98525e41002d5175f8e"/></dir><dir name="template"><dir name="prerender"><file name="link.phtml" hash="93ccaf5d5aa7546a310968ec360db71a"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Laurent_Prerender.xml" hash="b3c61a6fd2552016fd61ee88d1a44a17"/></dir></target><target name="magelocale"><dir name="fr_FR"><file name="Laurent_Prerender.csv" hash="8ad51ee71cea9af3ef9488647c1c5a01"/></dir></target><target name="magetest"><dir name="unit"><dir name="Helper"><file name="DataTest.php" hash="9cd80c0499fd6c2051ca6b8052e01dac"/></dir><dir name="Model"><file name="ModeTest.php" hash="60dca0a52ad85e53c94dd07afeda56e6"/></dir><file name="bootstrap.php" hash="39ac87b05aa77738a32a0031220b34fa"/></dir><dir name="selenium"><file name="GuessingModeTest.php" hash="f09a7c5f562cd5a2c72b2225c069eb36"/><file name="LogBasedModeTest.php" hash="366f2ffa61bfb2fcd71ec821fda0ce2b"/><file name="MagentoTestCase.php" hash="d158634c368a462828b19d238c911f43"/><file name="constants_ex.php" hash="da1b1523a8547a8d4c141d48fd0a9661"/></dir></target></contents>
21
  <compatible/>
22
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
23
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Prerender</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/afl-3.0.php">Academic Free License (AFL 3.0)</license>
7
  <channel>community</channel>
12
  site. This functionality allow you to prerender another page after viewed page&#xD;
13
  is loaded. You can then for example load next page of a category while firt page&#xD;
14
  is being viewed by customer.</description>
15
+ <notes>Support of Magento 1.8</notes>
 
16
  <authors><author><name>Laurent Clouet</name><user>laurent35240</user><email>laurent35240@gmail.com</email></author></authors>
17
+ <date>2013-11-17</date>
18
+ <time>18:01:18</time>
19
+ <contents><target name="magecommunity"><dir name="Laurent"><dir name="Prerender"><dir name="Block"><dir name="Adminhtml"><dir name="Cms"><dir name="Page"><dir name="Edit"><dir name="Tab"><file name="Prerender.php" hash="dbb296a84c203b4d15c71e1c7741f7db"/></dir></dir></dir></dir></dir><file name="Link.php" hash="bf80ad9136a9f4fef32eaebe25e5fc0f"/></dir><dir name="Helper"><file name="Data.php" hash="dcbf5d4e3852bc108aaeaa1ceec259bc"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="Config"><file name="Mode.php" hash="4d1bb52a761a12fd90d9e9823729f893"/></dir></dir></dir><dir name="doc"><file name="logo.jpg" hash="9a3602952a4fcf38c569cf97a995e6d9"/><file name="logo.svg" hash="8d6efd3edbdac63c42cf72cf50fe7542"/><file name="screenshot_cms_prerender_link_bo.png" hash="5e22e712e3e917e928692fb90077a9af"/><file name="screenshot_config_bo.png" hash="fee63ce607e6b8095cdbde0d5291f275"/></dir><dir name="etc"><file name="config.xml" hash="ab32a886d654fed9a088dd36c565e92e"/><file name="system.xml" hash="ca0e7f0c0c9966e854d0e1a434564063"/></dir><dir name="sql"><dir name="prerender_setup"><file name="install-0.1.0.php" hash="a343c7ae6f889b746aed46437825bb37"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="prerender.xml" hash="81951a2714d43f7a763d42856dca426e"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="prerender.xml" hash="f9b4b7bbd2ede98525e41002d5175f8e"/></dir><dir name="template"><dir name="prerender"><file name="link.phtml" hash="93ccaf5d5aa7546a310968ec360db71a"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Laurent_Prerender.xml" hash="b3c61a6fd2552016fd61ee88d1a44a17"/></dir></target><target name="magelocale"><dir name="fr_FR"><file name="Laurent_Prerender.csv" hash="8ad51ee71cea9af3ef9488647c1c5a01"/></dir></target><target name="magetest"><dir name="unit"><dir name="Helper"><file name="DataTest.php" hash="0caf597a9dcaa733363a65e84b87384d"/></dir><dir name="Model"><file name="ModeTest.php" hash="60dca0a52ad85e53c94dd07afeda56e6"/></dir><file name="bootstrap.php" hash="39ac87b05aa77738a32a0031220b34fa"/></dir><dir name="selenium"><file name="GuessingModeTest.php" hash="f09a7c5f562cd5a2c72b2225c069eb36"/><file name="LogBasedModeTest.php" hash="366f2ffa61bfb2fcd71ec821fda0ce2b"/><file name="MagentoTestCase.php" hash="d158634c368a462828b19d238c911f43"/><file name="constants_ex.php" hash="da1b1523a8547a8d4c141d48fd0a9661"/></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>
tests/unit/Helper/DataTest.php CHANGED
@@ -14,6 +14,7 @@
14
  */
15
  class DataTest extends PHPUnit_Framework_TestCase{
16
 
 
17
  public $helper;
18
 
19
  public function setUp() {
@@ -23,13 +24,13 @@ class DataTest extends PHPUnit_Framework_TestCase{
23
  /**
24
  * @test
25
  */
26
- public function getMostCommonNextUrlWithAndWithouDomain(){
27
- $urlWithDomain = 'http://www.magento-prerender.dev/music.html';
28
- $urlWithoutDomain = '/music.html';
29
 
30
  $nextForUrlWithDomain = $this->helper->getMostCommonNextUrl($urlWithDomain);
31
  $nextForUrlWithoutDomain = $this->helper->getMostCommonNextUrl($urlWithoutDomain);
32
-
33
  $this->assertEquals($nextForUrlWithDomain, $nextForUrlWithoutDomain);
34
  }
35
 
@@ -37,8 +38,8 @@ class DataTest extends PHPUnit_Framework_TestCase{
37
  * @test
38
  */
39
  public function getMostCommonNextUrlWithAndWithoutRewrite(){
40
- $urlWithRewrite = 'http://www.magento-prerender.dev/music.html';
41
- $urlWithoutRewrite = 'http://www.magento-prerender.dev/catalog/category/view/id/3';
42
 
43
  $nextForUrlWithRewrite = $this->helper->getMostCommonNextUrl($urlWithRewrite);
44
  $nextForUrlWithoutRewrite = $this->helper->getMostCommonNextUrl($urlWithoutRewrite);
@@ -50,8 +51,8 @@ class DataTest extends PHPUnit_Framework_TestCase{
50
  * @test
51
  */
52
  public function getRewrittenUrlWithAndWithoutParam(){
53
- $urlWithParam = 'http://www.magento-prerender.dev/catalog/category/view/id/3?p=1';
54
- $urlWithoutParam = 'http://www.magento-prerender.dev/catalog/category/view/id/3';
55
 
56
  $rewrittenUrlWithParam = $this->helper->getRewrittenUrl($urlWithParam);
57
  $rewrittenUrlWithoutParam = $this->helper->getRewrittenUrl($urlWithoutParam);
14
  */
15
  class DataTest extends PHPUnit_Framework_TestCase{
16
 
17
+ /** @var Laurent_Prerender_Helper_Data */
18
  public $helper;
19
 
20
  public function setUp() {
24
  /**
25
  * @test
26
  */
27
+ public function getMostCommonNextUrlWithAndWithoutDomain(){
28
+ $urlWithDomain = 'http://www.magento-prerender.dev/apparel.html';
29
+ $urlWithoutDomain = '/apparel.html';
30
 
31
  $nextForUrlWithDomain = $this->helper->getMostCommonNextUrl($urlWithDomain);
32
  $nextForUrlWithoutDomain = $this->helper->getMostCommonNextUrl($urlWithoutDomain);
33
+
34
  $this->assertEquals($nextForUrlWithDomain, $nextForUrlWithoutDomain);
35
  }
36
 
38
  * @test
39
  */
40
  public function getMostCommonNextUrlWithAndWithoutRewrite(){
41
+ $urlWithRewrite = 'http://www.magento-prerender.dev/apparel.html';
42
+ $urlWithoutRewrite = 'http://www.magento-prerender.dev/catalog/category/view/id/18';
43
 
44
  $nextForUrlWithRewrite = $this->helper->getMostCommonNextUrl($urlWithRewrite);
45
  $nextForUrlWithoutRewrite = $this->helper->getMostCommonNextUrl($urlWithoutRewrite);
51
  * @test
52
  */
53
  public function getRewrittenUrlWithAndWithoutParam(){
54
+ $urlWithParam = 'http://www.magento-prerender.dev/catalog/category/view/id/18?p=1';
55
+ $urlWithoutParam = 'http://www.magento-prerender.dev/catalog/category/view/id/18';
56
 
57
  $rewrittenUrlWithParam = $this->helper->getRewrittenUrl($urlWithParam);
58
  $rewrittenUrlWithoutParam = $this->helper->getRewrittenUrl($urlWithoutParam);