FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Make casing consistent (UserProviderInterface) · JavaDevl/framework@a8d1305 · GitHub

Commit a8d1305

Browse files
committed
Make casing consistent (UserProviderInterface)
1 parent 4a1a963 commit a8d1305

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/Illuminate/Auth/Guard.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function user()
143143

144144
if ( ! is_null($id))
145145
{
146-
$user = $this->provider->retrieveByID($id);
146+
$user = $this->provider->retrieveById($id);
147147
}
148148

149149
// If the user is null, but we decrypt a "recaller" cookie we can attempt to

‎tests/Auth/AuthDatabaseUserProviderTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function testRetrieveByIDReturnsUserWhenUserIsFound()
1717
$conn->shouldReceive('find')->once()->with(1)->andReturn(array('id' => 1, 'name' => 'Dayle'));
1818
$hasher = m::mock('Illuminate\Contracts\Hashing\Hasher');
1919
$provider = new Illuminate\Auth\DatabaseUserProvider($conn, $hasher, 'foo');
20-
$user = $provider->retrieveByID(1);
20+
$user = $provider->retrieveById(1);
2121

2222
$this->assertInstanceOf('Illuminate\Auth\GenericUser', $user);
2323
$this->assertEquals(1, $user->getAuthIdentifier());
@@ -32,7 +32,7 @@ public function testRetrieveByIDReturnsNullWhenUserIsNotFound()
3232
$conn->shouldReceive('find')->once()->with(1)->andReturn(null);
3333
$hasher = m::mock('Illuminate\Contracts\Hashing\Hasher');
3434
$provider = new Illuminate\Auth\DatabaseUserProvider($conn, $hasher, 'foo');
35-
$user = $provider->retrieveByID(1);
35+
$user = $provider->retrieveById(1);
3636

3737
$this->assertNull($user);
3838
}

‎tests/Auth/AuthEloquentUserProviderTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function testRetrieveByIDReturnsUser()
1717
$mock->shouldReceive('newQuery')->once()->andReturn($mock);
1818
$mock->shouldReceive('find')->once()->with(1)->andReturn('bar');
1919
$provider->expects($this->once())->method('createModel')->will($this->returnValue($mock));
20-
$user = $provider->retrieveByID(1);
20+
$user = $provider->retrieveById(1);
2121

2222
$this->assertEquals('bar', $user);
2323
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL