File tree Expand file tree Collapse file tree 4 files changed +28
-11
lines changed Expand file tree Collapse file tree 4 files changed +28
-11
lines changed Original file line number Diff line number Diff line change 1
1
Lesti_Fpc
2
2
=========
3
3
4
- ## Build Status
5
-
6
- * Master:
7
- [ ![ Build Status] ( https://travis-ci.org/GordonLesti/Lesti_Fpc.svg?branch=master )] ( https://travis-ci.org/GordonLesti/Lesti_Fpc )
8
- [ ![ Coverage Status] ( https://coveralls.io/repos/GordonLesti/Lesti_Fpc/badge.png?branch=master )] ( https://coveralls.io/r/GordonLesti/Lesti_Fpc?branch=master )
9
- * Develop:
10
- [ ![ Build Status] ( https://travis-ci.org/GordonLesti/Lesti_Fpc.svg?branch=develop )] ( https://travis-ci.org/GordonLesti/Lesti_Fpc )
11
- [ ![ Coverage Status] ( https://coveralls.io/repos/GordonLesti/Lesti_Fpc/badge.png?branch=develop )] ( https://coveralls.io/r/GordonLesti/Lesti_Fpc?branch=develop )
4
+ Branch | Build Status | Coverage
5
+ --- | --- | ---
6
+ Master | [ ![ Build Status] ( https://img.shields.io/travis/GordonLesti/Lesti_Fpc/master.svg?style=flat-square )] ( https://travis-ci.org/GordonLesti/Lesti_Fpc ) | [ ![ Coverage Status] ( https://img.shields.io/coveralls/GordonLesti/Lesti_Fpc/master.svg?style=flat-square )] ( https://coveralls.io/r/GordonLesti/Lesti_Fpc?branch=master )
7
+ Develop | [ ![ Build Status] ( https://img.shields.io/travis/GordonLesti/Lesti_Fpc/develop.svg?style=flat-square )] ( https://travis-ci.org/GordonLesti/Lesti_Fpc ) | [ ![ Coverage Status] ( https://img.shields.io/coveralls/GordonLesti/Lesti_Fpc/develop.svg?style=flat-square )] ( https://coveralls.io/r/GordonLesti/Lesti_Fpc?branch=develop )
12
8
13
9
## Release Information
14
10
15
- * Lesti_Fpc 1.3.6 *
11
+ * Lesti_Fpc 1.3.7 *
16
12
17
13
## System Requirements
18
14
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class Lesti_Fpc_Helper_Block_Messages extends Mage_Core_Helper_Abstract
23
23
public function initLayoutMessages (
24
24
Mage_Core_Model_Layout $ layout ,
25
25
$ messagesStorage =
26
- array ('catalog/session ' , 'tag/session ' , 'checkout/session ' )
26
+ array ('catalog/session ' , 'tag/session ' , 'checkout/session ' , ' customer/session ' )
27
27
)
28
28
{
29
29
$ block = $ layout ->getMessagesBlock ();
Original file line number Diff line number Diff line change @@ -100,6 +100,27 @@ public function testInitLayoutMessagesCheckout()
100
100
$ this ->assertCount (2 , $ messages );
101
101
}
102
102
103
+ /**
104
+ * @test
105
+ */
106
+ public function testInitLayoutMessagesCustomer ()
107
+ {
108
+ $ layout = Mage::app ()->getLayout ();
109
+ /** @var Mage_Customer_Model_Session $customerStorage */
110
+ $ customerStorage = Mage::getSingleton ('customer/session ' );
111
+ $ customerStorage ->addSuccess ('Fpc is cool. ' );
112
+ $ customerStorage ->addError ('Fpc has no errors. ' );
113
+ $ this ->assertInstanceOf (
114
+ 'Mage_Core_Model_Layout ' ,
115
+ $ this ->_messagesHelper ->initLayoutMessages ($ layout )
116
+ );
117
+
118
+ // test if session is now empty
119
+ $ this ->assertEquals (0 , $ customerStorage ->getMessages ()->count ());
120
+ $ messages = $ layout ->getMessagesBlock ()->getMessages ();
121
+ $ this ->assertCount (2 , $ messages );
122
+ }
123
+
103
124
/**
104
125
* @test
105
126
* @expectedException Mage_Core_exception
Original file line number Diff line number Diff line change 15
15
<config >
16
16
<modules >
17
17
<Lesti_Fpc >
18
- <version >1.3.6 </version >
18
+ <version >1.3.7 </version >
19
19
</Lesti_Fpc >
20
20
</modules >
21
21
<global >
You can’t perform that action at this time.
0 commit comments