|
|
@@ -64,7 +64,10 @@ class SessionHelperTest extends TestCase {
|
|
|
'type' => 'success',
|
|
|
'params' => array('class' => 'positive'),
|
|
|
'message' => 'Recorded'
|
|
|
- )
|
|
|
+ ),
|
|
|
+ 'incomplete' => [
|
|
|
+ 'message' => 'A thing happened',
|
|
|
+ ]
|
|
|
),
|
|
|
'Deeply' => array('nested' => array('key' => 'value')),
|
|
|
));
|
|
|
@@ -130,6 +133,16 @@ class SessionHelperTest extends TestCase {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * Test rendering a flash message for incomplete data.
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function testFlashIncomplete() {
|
|
|
+ $result = $this->Session->flash('incomplete');
|
|
|
+ $expected = '<div id="flash-message" class="message-info">A thing happened</div>';
|
|
|
+ }
|
|
|
+
|
|
|
+/**
|
|
|
* test flash() with the attributes.
|
|
|
*
|
|
|
* @return void
|