Skip to content

Commit 940d25e

Browse files
committed
Document using plain cookies including assertHasPlainCookie and assertPlainCookieMissing
1 parent b1be6e5 commit 940d25e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

dusk.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,10 @@ You may use the `cookie` method to get or set an encrypted cookie's value:
735735

736736
$browser->cookie('name');
737737

738+
You may use the `plainCookie` method to get or set a plain cookie's value:
739+
740+
$browser->plainCookie('name');
741+
738742
You may use the `addCookie` method to create a new cookie using the given value:
739743

740744
$browser->addCookie('name', 'value');
@@ -779,7 +783,9 @@ Dusk provides a variety of assertions that you may make against your application
779783
[assertFragmentBeginsWith](#assert-fragment-begins-with)
780784
[assertFragmentIsNot](#assert-fragment-is-not)
781785
[assertHasCookie](#assert-has-cookie)
786+
[assertHasPlainCookie](#assert-has-plain-cookie)
782787
[assertCookieMissing](#assert-cookie-missing)
788+
[assertPlainCookieMissing](#assert-plain-cookie-missing)
783789
[assertCookieValue](#assert-cookie-value)
784790
[assertPlainCookieValue](#assert-plain-cookie-value)
785791
[assertSee](#assert-see)
@@ -962,13 +968,27 @@ Assert that the given cookie is present:
962968

963969
$browser->assertHasCookie($name);
964970

971+
<a name="assert-has-plain-cookie"></a>
972+
#### assertHasPlainCookie
973+
974+
Assert that the given plain cookie is present:
975+
976+
$browser->assertHasPlainCookie($name);
977+
965978
<a name="assert-cookie-missing"></a>
966979
#### assertCookieMissing
967980

968981
Assert that the given cookie is not present:
969982

970983
$browser->assertCookieMissing($name);
971984

985+
<a name="assert-plain-cookie-missing"></a>
986+
#### assertPlainCookieMissing
987+
988+
Assert that the given plain cookie is not present:
989+
990+
$browser->assertPlainCookieMissing($name);
991+
972992
<a name="assert-cookie-value"></a>
973993
#### assertCookieValue
974994

0 commit comments

Comments
 (0)