Skip to content

Commit f580f60

Browse files
committed
Update Test User model and Repository Test
1 parent 5cb22f9 commit f580f60

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/Feature/App/RepositoryTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
use PPSpaces\Tests\App\User;
66
use PPSpaces\Tests\TestCase;
77
use PPSpaces\Tests\App\Http\Repositories\UserRepository;
8-
use Illuminate\Container\Container as App;
98

109
/**
1110
* Class DatabaseTest
1211
*/
1312
class RepositoryTest extends TestCase
1413
{
15-
public function test_it_get_datas_from_repository()
14+
public function test_it_get_all_data_from_repository()
1615
{
1716
// When we have 50 users
1817
$users = factory(User::class, 50)->create();

tests/app/User.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
namespace PPSpaces\Tests\App;
44

5-
class User
5+
use Illuminate\Database\Eloquent\Model;
6+
7+
class User extends Model
68
{
79

810
/**

0 commit comments

Comments
 (0)