@@ -6,42 +6,42 @@ class ActionTest extends TestCase
66{
77 public function testIdDefaultsToNull ()
88 {
9- $ action = new Action (' name ' );
9+ $ action = new Action ();
1010
1111 $ this ->assertNull ($ action ->getActionId ());
1212 }
1313
1414 public function testIdCanBeSet ()
1515 {
16- $ action = new Action (' name ' , array ('ActionID ' => '123 ' ));
16+ $ action = new Action (array ('ActionID ' => '123 ' ));
1717
1818 $ this ->assertEquals ('123 ' , $ action ->getActionId ());
1919 }
2020
2121 public function testSerializeSimple ()
2222 {
23- $ action = new Action (' name ' );
23+ $ action = new Action (array ( ' Action ' => ' name ') );
2424
2525 $ this ->assertEquals ("Action: name \r\n\r\n" , $ action ->getMessageSerialized ());
2626 }
2727
2828 public function testSerializeKeySingle ()
2929 {
30- $ action = new Action (' name ' , array ( 'Key ' => 'Value ' ));
30+ $ action = new Action (array ( ' Action ' => ' name ' , 'Key ' => 'Value ' ));
3131
3232 $ this ->assertEquals ("Action: name \r\nKey: Value \r\n\r\n" , $ action ->getMessageSerialized ());
3333 }
3434
3535 public function testSerializeKeyMultipleValues ()
3636 {
37- $ action = new Action (' name ' , array ( 'Key ' => array ('Value1 ' , 'Value2 ' )));
37+ $ action = new Action (array ( ' Action ' => ' name ' , 'Key ' => array ('Value1 ' , 'Value2 ' )));
3838
3939 $ this ->assertEquals ("Action: name \r\nKey: Value1 \r\nKey: Value2 \r\n\r\n" , $ action ->getMessageSerialized ());
4040 }
4141
4242 public function testSerializeKeyMultipleKeyValues ()
4343 {
44- $ action = new Action (' name ' , array ( 'Variables ' => array ('first ' => 'on ' , 'second ' => 'off ' )));
44+ $ action = new Action (array ( ' Action ' => ' name ' , 'Variables ' => array ('first ' => 'on ' , 'second ' => 'off ' )));
4545
4646 $ this ->assertEquals ("Action: name \r\nVariables: first=on \r\nVariables: second=off \r\n\r\n" , $ action ->getMessageSerialized ());
4747 }
0 commit comments