src/Concerns/MakesAssertions.php
public function assertHasCookie($name, $decrypt = true)
    {
        $cookie = $decrypt ? $this->cookie($name) : $this->plainCookie($name);

        PHPUnit::assertTrue(
            ! is_null($cookie),
            "Did not find expected cookie [{$name}]."
        );

        return $this;
    }
public function assertHasCookie($name, $decrypt = true)
    {
        $cookie = $decrypt ? $this->cookie($name) : $this->plainCookie($name);

        PHPUnit::assertTrue(
            ! is_null($cookie),
            "Did not find expected cookie [{$name}]."
        );

        return $this;
    }
public function assertHasCookie ( $ name , $ decrypt = true ) { $ cookie = $ decrypt ? $ this -> cookie ( $ name ) : $ this -> plainCookie ( $ name ) ; PHPUnit :: assertTrue ( ! is_null ( $ cookie ) , "Did not find expected cookie [{$name}]." ) ; return $ this ; }
Assert that the given cookie is present.

@param  string $name
@param  bool  $decrypt
@return $this
Assert that the given cookie is present .