dontSeeInCollection
Verifies that the given key and optional value does not exist in the ColdBox request collection.
Arguments
| Name |
Type |
Required |
Default |
Description |
| key |
string |
true |
|
The key that should not be found in the collection. |
| value |
string |
false |
|
The value that should not be found in the collection with the given key. If omitted, only checks if the key exists. |
| private |
boolean |
false |
false |
If true, use the private collection instead of the default collection. |
Examples
it( "can verify that keys and values are not in the framework collection", function() {
this.visit( "/" )
.dontSeeInCollection( "error" )
.dontSeeInCollection( "email", "scotty@uss.enterprise" )
.dontSeeInCollection( key = "secret", private = true );
} );