Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
duyphan2502 committed Dec 31, 2016
1 parent b42bea0 commit 08a5569
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/CmsInstallTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<?php

use WebEd\Base\ACL\Models\EloquentRole;
use WebEd\Base\Users\Models\EloquentUser;

class CmsInstallTest extends TestCase
{
/**
Expand All @@ -19,8 +16,8 @@ protected function setUp()
{
parent::setUp(); // TODO: Change the autogenerated stub

$this->roleRepository = app(\WebEd\Base\ACL\Repositories\Contracts\RoleContract::class);
$this->userRepository = app(\WebEd\Base\Users\Repositories\Contracts\UserContract::class);
$this->roleRepository = app(\WebEd\Base\ACL\Repositories\Contracts\RoleRepositoryContract::class);
$this->userRepository = app(\WebEd\Base\Users\Repositories\Contracts\UserRepositoryContract::class);
}

/**
Expand All @@ -45,7 +42,7 @@ public function testCmsInstall()

protected function createSuperAdminRole()
{
$role = new EloquentRole();
$role = new \WebEd\Base\ACL\Models\Role();
$role->name = 'Super Admin';
$role->slug = 'super-admin';
$this->roleRepository->create([
Expand Down

0 comments on commit 08a5569

Please sign in to comment.