We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33aa68c commit 620dabaCopy full SHA for 620daba
src/Codeception/Module/Symfony.php
@@ -890,6 +890,29 @@ public function logout()
890
$cookieJar->flushExpiredCookies();
891
}
892
893
+ /**
894
+ * Assert that the session has a given list of values.
895
+ *
896
+ * ``` php
897
+ * <?php
898
+ * $I->seeSessionHasValues(['key1', 'key2']);
899
+ * $I->seeSessionHasValues(['key1' => 'value1', 'key2' => 'value2']);
900
+ * ```
901
902
+ * @param array $bindings
903
+ * @return void
904
+ */
905
+ public function seeSessionHasValues(array $bindings)
906
+ {
907
+ foreach ($bindings as $key => $value) {
908
+ if (is_int($key)) {
909
+ $this->seeInSession($value);
910
+ } else {
911
+ $this->seeInSession($key, $value);
912
+ }
913
914
915
+
916
/**
917
* Assert that a session attribute exists.
918
*
0 commit comments