Skip to content

Commit

Permalink
tweak assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 5, 2016
1 parent 126adb7 commit b6dec26
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Illuminate/Foundation/Testing/TestResponse.php
Expand Up @@ -40,7 +40,7 @@ public static function fromBaseResponse($response)
*
* @return void
*/
public function assertHasStatus($status)
public function assertStatus($status)
{
$actual = $this->getStatusCode();

Expand All @@ -53,7 +53,7 @@ public function assertHasStatus($status)
* @param string $uri
* @return void
*/
public function assertIsRedirect($uri)
public function assertRedirect($uri)
{
PHPUnit::assertTrue(
$this->isRedirect(), 'Response status code ['.$this->status().'] is not a redirect status code.'
Expand All @@ -69,7 +69,7 @@ public function assertIsRedirect($uri)
* @param mixed $value
* @return $this
*/
public function assertHasHeader($headerName, $value = null)
public function assertHeader($headerName, $value = null)
{
PHPUnit::assertTrue(
$this->headers->has($headerName), "Header [{$headerName}] not present on response."
Expand All @@ -94,9 +94,9 @@ public function assertHasHeader($headerName, $value = null)
* @param mixed $value
* @return void
*/
public function assertHasPlainCookie($cookieName, $value = null)
public function assertPlainCookie($cookieName, $value = null)
{
$this->seeCookie($cookieName, $value, false);
$this->assertCookie($cookieName, $value, false);
}

/**
Expand All @@ -107,7 +107,7 @@ public function assertHasPlainCookie($cookieName, $value = null)
* @param bool $encrypted
* @return void
*/
public function assertHasCookie($cookieName, $value = null, $encrypted = true)
public function assertCookie($cookieName, $value = null, $encrypted = true)
{
$headers = $this->headers;

Expand Down

0 comments on commit b6dec26

Please sign in to comment.