Skip to content

Commit

Permalink
rename methods
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 15, 2017
1 parent b04dc1f commit 494a177
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ trait InteractsWithAuthentication
* @param string|null $driver
* @return $this
*/
public function loginAs(UserContract $user, $driver = null)
public function actingAs(UserContract $user, $driver = null)
{
$this->be($user, $driver);

Expand All @@ -40,7 +40,7 @@ public function be(UserContract $user, $driver = null)
* @param string|null $guard
* @return $this
*/
public function assertAuthentication($guard = null)
public function assertAuthenticated($guard = null)
{
$this->assertTrue($this->isAuthenticated($guard), 'The user is not authenticated');

Expand Down Expand Up @@ -118,7 +118,7 @@ public function assertCredentials(array $credentials, $guard = null)
* @param string|null $guard
* @return $this
*/
public function assertCredentialsMissing(array $credentials, $guard = null)
public function assertInvalidCredentials(array $credentials, $guard = null)
{
$this->assertFalse(
$this->hasCredentials($credentials, $guard), 'The given credentials are valid.'
Expand Down
6 changes: 3 additions & 3 deletions tests/Foundation/FoundationAuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ public function tearDown()
m::close();
}

public function testAssertAuthentication()
public function testAssertAuthenticated()
{
$this->mockGuard()
->shouldReceive('check')
->once()
->andReturn(true);

$this->assertAuthentication();
$this->assertAuthenticated();
}

public function testAssertGuest()
Expand Down Expand Up @@ -128,6 +128,6 @@ public function testAssertCredentialsMissing()

$this->setupProvider($credentials);

$this->assertCredentialsMissing($credentials);
$this->assertInvalidCredentials($credentials);
}
}

0 comments on commit 494a177

Please sign in to comment.