Updated tests

This commit is contained in:
Graham Campbell
2015-12-06 11:04:02 +00:00
parent 036c819922
commit 19e3804227
42 changed files with 340 additions and 412 deletions

View File

@@ -11,10 +11,14 @@
namespace CachetHQ\Tests\Cachet;
use CachetHQ\Cachet\Models\User;
use Illuminate\Contracts\Console\Kernel;
use Illuminate\Foundation\Testing\TestCase;
/**
* This is the abstract test case class.
*
* @author Graham Campbell <graham@alt-three.com>
*/
abstract class AbstractTestCase extends TestCase
{
/**
@@ -37,14 +41,4 @@ abstract class AbstractTestCase extends TestCase
return $app;
}
/**
* Become a user.
*/
protected function beUser()
{
$this->user = factory(User::class)->create();
$this->be($this->user);
}
}